{"library":"rollup-plugin-livereload","title":"rollup-plugin-livereload","description":"A Rollup plugin that integrates LiveReload functionality, automatically reloading the browser when the bundle changes. Currently at version 2.0.5, it supports Node >=8.3 and ships TypeScript definitions. It wraps the `livereload` npm package, allowing configuration of watch directories, port, delay, and HTTPS. Unlike generic watchers, it is tailored for Rollup's build pipeline, pairing well with `rollup-plugin-serve`. The plugin watches the output directory for changes and notifies the browser via WebSocket, eliminating manual refresh during development. It has been stable for several years with low maintenance overhead.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-livereload"],"cli":null},"imports":["import livereload from 'rollup-plugin-livereload'","export default { plugins: [livereload()] }","livereload({ watch: 'dist', delay: 300 })"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import livereload from 'rollup-plugin-livereload';\nimport serve from 'rollup-plugin-serve';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    file: 'dist/bundle.js',\n    format: 'iife'\n  },\n  plugins: [\n    serve('dist'),\n    livereload({ watch: 'dist', verbose: false })\n  ]\n};","lang":"typescript","description":"Configures rollup-plugin-serve and rollup-plugin-livereload together for a full dev server with auto-reload.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}