{"name":"rollup-plugin-livereload","version":"0.2.0","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","scripts":{"build":"rollup -c -f cjs -o dist/index.cjs.js && rollup -c -f es -o dist/index.es.js","dev":"rollup -cw -f cjs -o dist/index.cjs.js","lint":"standard rollup.config.js src/**","prepublish":"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"},"files":["dist"],"dependencies":{"livereload":"^0.5.0"},"devDependencies":{"rollup":"^0.36.0","rollup-plugin-buble":"^0.14.0","rollup-watch":"^2.5.0"},"gitHead":"dcfe55a704b0376430ef8c0f365c60792bc94d9a","_id":"rollup-plugin-livereload@0.2.0","_shasum":"832c30430a8aaf39cef25ce40c611a069de6bb89","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.7.0","_npmUser":{"name":"thgh","email":"info@thomasg.be"},"dist":{"shasum":"832c30430a8aaf39cef25ce40c611a069de6bb89","tarball":"http://registry-npm.ywwl.com/rollup-plugin-livereload/download/rollup-plugin-livereload-0.2.0.tgz","integrity":"sha512-oCpyZ9t+L6t+awSa9WHjKLSxJuG1DwPJTZ+0dLUwUVXmC/l1mPO6Dub8/foYqN0CFSeSh3DMab1WDRvS6dTzJA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDgvhDvnN3zeu74Wl8Pw8LxE8QHzvo1/qZga3hVwdWxUAIhAPP3frbYV0IqAInubrNE1a5FZkyfYtWpawg5oJf1/QcD"}],"size":2891,"noattachment":false,"key":"/rollup-plugin-livereload/-/rollup-plugin-livereload-0.2.0.tgz"},"maintainers":[{"name":"thgh","email":"info@thomasg.be"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rollup-plugin-livereload-0.2.0.tgz_1477688976911_0.9622511025518179"},"directories":{},"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":1477688978859,"_cnpm_publish_time":1477688978859,"dist-tags":{"latest":"2.0.5","rc":"2.0.0-0"}}