rollup-plugin-hotreload
Hot Reload plugin for Rollup.js
Feature
- Support EventSource
- Support multiple files hotreload
- Support auto injected into HTML
- Few dependencies
How to use
rollup.config.js
import rph from "rollup-plugin-hotreload";
import your_server from "your_server_path";
export default {
plugins: [
rph({
your_server,
templateHtmlPath: "src/index.html",
isStopRPH: false,
rootDir: "build",
buildPaths: [
["js/index.min.js", "src/index.js"]
]
})
]
}
Installation
$yarn add rollup-plugin-hotreload
or
$npm install rollup-plugin-hotreload
Test (Todo)
$yarn test
Build
$yarn build
Contributing
Feel free to fork and PR
Issues
License
MIT