Doesn't work with rollup-plugin-serve
See original GitHub issueMy rollup config:
import serve from 'rollup-plugin-serve';
import livereload from 'rollup-plugin-livereload';
export default {
entry: `src/index.js`,
dest: `docs/script.js`,
plugins: [
serve({
open: true,
contentBase: `docs`,
}),
livereload()
],
format: `iife`
};
Then, I run rollup --config --watch
. The app loads on port 10001, but it doesn’t livereload upon bundle changes. In fact, the bundle doesn’t get compiled at all anymore! Removing this plugin fixes everything.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:7
- Comments:13 (2 by maintainers)
Top Results From Across the Web
rollup-plugin-serve - npm
Start using rollup-plugin-serve in your project by running `npm i rollup-plugin-serve`. There are 158 other projects in the npm registry ...
Read more >rollup-plugin-serve/README.md - UNPKG
1, # Rollup plugin to serve the bundle. 2. 3, <a href="LICENSE">. 4, <img src="https://img.shields.io/badge/license-MIT-brightgreen.svg" alt="Software ...
Read more >Rollup Plugin Serve History API Fallback not working
i am using rollup for my svelte app. I install the package rollup-plugin-serve from npm to us the historyApiFallback so i can serve...
Read more >Dev Server: Using plugins - Modern Web
These variables are not defined in the browser and will crash. ... The fromRollup function will convert a rollup plugin to a compatible...
Read more >rollup-plugin-server - npm Package Health Analysis - Snyk
Security issues were found while scanning the latest version of rollup-plugin-server, and a total of 1 vulnerabilities were detected. It is highly advised ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@homerjam Short summary: Rollup watches
src
folder, and rebuilds files intodist
when files insrc
changed. This plugin watchesdist
folder, and reloads browser when files indist
changed.Works for me guys. Not sure if my config is of any use but I’ll share it anyway. It also reloads sass 😃