{"name":"rollup-plugin-livereload","version":"2.0.5","description":"Rollup plugin for LiveReload that watches the bundle and reloads the page on change","main":"dist/index.cjs.js","module":"dist/index.es.js","jsnext:main":"dist/index.es.js","types":"index.d.ts","scripts":{"build":"rollup -c","dev":"rollup -cw","lint":"prettier -l .","fix":"prettier --write .","test":"cd test && rollup -cw ; cd ..","prepare":"npm run build"},"keywords":["rollup","rollup-plugin","livereload","lr"],"license":"MIT","author":{"name":"Thomas Ghysels","email":"info@thomasg.be"},"homepage":"https://github.com/thgh/rollup-plugin-livereload","bugs":{"url":"https://github.com/thgh/rollup-plugin-livereload/issues"},"repository":{"type":"git","url":"git+https://github.com/thgh/rollup-plugin-livereload.git"},"engines":{"node":">=8.3"},"dependencies":{"livereload":"^0.9.1"},"devDependencies":{"@rollup/plugin-node-resolve":"^9.0.0","port-authority":"^1.1.1","rollup":"2","rollup-plugin-serve":"1"},"gitHead":"0f0b30c8cd1dbd6754e041dfcfd65ed8d5ae6d98","_id":"rollup-plugin-livereload@2.0.5","_nodeVersion":"12.18.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-vqQZ/UQowTW7VoiKEM5ouNW90wE5/GZLfdWuR0ELxyKOJUIaj+uismPZZaICU4DnWPVjnpCDDxEqwU7pcKY/PA==","shasum":"4747fa292a2cceb0c972c573d71b3d66b4252b37","tarball":"http://registry-npm.ywwl.com/rollup-plugin-livereload/download/rollup-plugin-livereload-2.0.5.tgz","fileCount":7,"unpackedSize":14362,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg2xABCRA9TVsSAnZWagAA3X0P/iT07l5N9ZCsptti4XzR\nIMF+wdAkrg+iOeMNIcJuxv31Ht0DhOxNQeVI8Tbw7tzGzjSpWc5sD/ivQVL4\nZ5TsfA1TY3sp2Avbe6oEjABXtJ4W4AWzMdK9RIFxQgNMhv70Mzxw1xM982E4\n3gKaki424JPvbb792wjBBSM6vMq6XAaLrM+0iudrOANes6qYGIpHVQ7ySidq\ncpEXXleKqEY58TbZ7IE63rqkZ5Y11yJW0uEvgyqq9+LXI8VNTjzQ3hYMSO4Y\neS0rJklkM6krjSsQ3CTYp4sVo46lo0if9qolDcPe/WUN8clXMpEENEv/y/Rr\ndoLa3hUnk/BakHVjLBZ2xmYHV2OFBNkbHiGW3oqg+6aRXvZuRRqETYQQ/+xC\nP4xESWZDPRoEskpsjXxjLURb3FsFgHGrMgWfGme8T/NmxYbY240vsCIvk9AM\neUd3ct8WWXTegdygjRTmmY/L+4It0PeJnQskf/Tufk5SfaQvlhgK+PedEOv0\n6SA9M8td0Y1UKnMvm0O47P6FQNtWmOKQUT2K3r0fm+9KqnKbrROZjwiyPaNc\nOCrHzxApYkrXnGhm9mqYz0URUh8I3ZuRCCKynkqNf3G0HbuNWmHC+2JrJ7pQ\ng67fBW1Ic5NfUgPrR09AGowNWjjYyH5s0kdVlpHAmcGdlOql83L6ADZjuZGD\ntuyB\r\n=dsj/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICHFhg0rVvxkZhijxXZLrlGrVvaDQhx/1BhNzatBmFlUAiEAywYtPOI6Rzpc6VloYtK2BdbOSohJwsjGyIT3TPk8nDg="}],"size":4549,"noattachment":false,"key":"/rollup-plugin-livereload/-/rollup-plugin-livereload-2.0.5.tgz"},"_npmUser":{"name":"thgh","email":"info@thomasg.be"},"directories":{},"maintainers":[{"name":"thgh","email":"info@thomasg.be"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-livereload_2.0.5_1624969217226_0.2527739512327918"},"_hasShrinkwrap":false,"readme":"# Rollup plugin LiveReload\n\n<a href=\"LICENSE\">\n  <img src=\"https://img.shields.io/badge/license-MIT-brightgreen.svg\" alt=\"Software License\" />\n</a>\n<a href=\"https://github.com/thgh/rollup-plugin-livereload/issues\">\n  <img src=\"https://img.shields.io/github/issues/thgh/rollup-plugin-livereload.svg\" alt=\"Issues\" />\n</a>\n<a href=\"http://standardjs.com/\">\n  <img src=\"https://img.shields.io/badge/code%20style-standard-brightgreen.svg\" alt=\"JavaScript Style Guide\" />\n</a>\n<a href=\"https://npmjs.org/package/rollup-plugin-livereload\">\n  <img src=\"https://img.shields.io/npm/v/rollup-plugin-livereload.svg?style=flat-squar\" alt=\"NPM\" />\n</a>\n<a href=\"https://github.com/thgh/rollup-plugin-livereload/releases\">\n  <img src=\"https://img.shields.io/github/release/thgh/rollup-plugin-livereload.svg\" alt=\"Latest Version\" />\n</a>\n\n## Installation\n\n```\nnpm install --save-dev rollup-plugin-livereload\n```\n\n## Usage\n\n```js\n// rollup.config.js\nimport livereload from 'rollup-plugin-livereload'\n\nexport default {\n  entry: 'entry.js',\n  dest: 'bundle.js',\n  plugins: [livereload()],\n}\n```\n\nTo make it a real dev-server, combine this plugin with [rollup-plugin-serve].\n\n```js\n// rollup.config.js\nimport serve from 'rollup-plugin-serve'\nimport livereload from 'rollup-plugin-livereload'\n\nexport default {\n  entry: 'entry.js',\n  dest: 'bundle.js',\n  plugins: [\n    serve(), // index.html should be in root of project\n    livereload(),\n  ],\n}\n```\n\n### Options\n\nBy default, it watches the current directory. If you also have css output, pass the folder to which the build files are written.\n\n```\nlivereload('dist')\n\n// --- OR ---\n\nlivereload({\n  watch: 'dist',\n  verbose: false, // Disable console output\n\n  // other livereload options\n  port: 12345,\n  delay: 300,\n  https: {\n      key: fs.readFileSync('keys/agent2-key.pem'),\n      cert: fs.readFileSync('keys/agent2-cert.pem')\n  }\n})\n```\n\nOptions are always passed to [`livereload.createServer()`][livereload]\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Contributing\n\nContributions and feedback are very welcome.\n\nTo get it running:\n\n1. Clone the project.\n2. `npm install`\n3. `npm run build`\n\n## Credits\n\n- [Thomas Ghysels](https://github.com/thgh)\n- [All Contributors][link-contributors]\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n\n[link-author]: https://github.com/thgh\n[link-contributors]: ../../contributors\n[livereload]: https://www.npmjs.com/package/livereload\n[rollup-plugin-serve]: https://www.npmjs.com/package/rollup-plugin-serve\n","publish_time":1624969217372,"_cnpm_publish_time":1624969217372,"dist-tags":{"latest":"2.0.5","rc":"2.0.0-0"}}