2.0.5 • Published 4 years ago

rollup-plugin-livereload v2.0.5

Weekly downloads
42,648
License
MIT
Repository
github
Last release
4 years ago

Rollup plugin LiveReload

Installation

npm install --save-dev rollup-plugin-livereload

Usage

// rollup.config.js
import livereload from 'rollup-plugin-livereload'

export default {
  entry: 'entry.js',
  dest: 'bundle.js',
  plugins: [livereload()],
}

To make it a real dev-server, combine this plugin with rollup-plugin-serve.

// rollup.config.js
import serve from 'rollup-plugin-serve'
import livereload from 'rollup-plugin-livereload'

export default {
  entry: 'entry.js',
  dest: 'bundle.js',
  plugins: [
    serve(), // index.html should be in root of project
    livereload(),
  ],
}

Options

By default, it watches the current directory. If you also have css output, pass the folder to which the build files are written.

livereload('dist')

// --- OR ---

livereload({
  watch: 'dist',
  verbose: false, // Disable console output

  // other livereload options
  port: 12345,
  delay: 300,
  https: {
      key: fs.readFileSync('keys/agent2-key.pem'),
      cert: fs.readFileSync('keys/agent2-cert.pem')
  }
})

Options are always passed to livereload.createServer()

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Contributions and feedback are very welcome.

To get it running:

  1. Clone the project.
  2. npm install
  3. npm run build

Credits

License

The MIT License (MIT). Please see License File for more information.

czt-app-componentsbnc-gulp-multiple-pagestest-ggggggggggggg@banli17/cli-thing-service-test1svelte-petit-libsappligator@infinitebrahmanuniverse/nolb-rollup-plugin-lgokul-kv-sdkgokul-sdk@everything-registry/sub-chunk-2681molecula-uisvelte-scriptssvelte-dndxiehuan-utilsxeirasuper-reportertest996svbswafthesjs@dofu/infra@drewfle/bundler@ctsx/rollup@cscart/tools@coretrek/corecomponentski-quadrat-chat-widgetlarge-data-tablekyberutilssudexpert-ui@auth0/oidc-implicit-flow@ahone/svg2canvas@aliyun-sls/sls-app-loader@biotope/build@buckless/datetime-picker@citolab/tspci@bootcamp-project/rollupjs-config@davidwl/pluggable-widgets-toolsyl-ui-rollup-configyapi-toyot-cdk-svelte-builderytx-im-webxs-tools-kitzigmiumts-rollup-assistantuvalib-counts@femate/web-camera@gsmlg/ui5-webcomponents-tools@ekstra-bladet/designsystem@gem-mine/script-rollup@iosio/create-project@iosio/create-x-app@iosio/create-x-app-scripts@lx-frontend/svg2canvas@madoc.io/bundler@mext/compile@mtgoo/toygl@exalt/toolchain@evoltis/sigura3-common-ui@equinor/echo-cli@mendix/pluggable-widgets-tools@imedx/ics-imedx-queue-js-sdk@imedx/ics-imedx-rational-js-sdk@imedx/ics-imedx-disease-report-platform@imedx/ics-imedx-drug-cdss-js-sdk@imedx/ics-imedx-exam-lab-sdk@imedx/ics-imedx-hais-js-sdk@imedx/ics-imedx-infections-js-sdk@imedx/ics-imedx-metaphysics-js-sdk@omniblack/vulcan@pkb/rollup-box@procde/bundler@radic/build-tools-rollup@scola/lib@ong/rc-pack-service@polylith/builder@patchcab/core@nosaid/rollup@plandalf/plandalf-js@osdevisnot/tslib-cli@osarrouy/rollup-config-sveltemrray-common-componentsmouse_jssdkmonitor-mmry1monitor-mmry2monitor-mmry3mf-buildmersinnailjspadlpackage-cli-serviceon-duty-jsscantreact-captcha-simplerullup-npmrollup-mixrollup-projectroxirollup-configuredrollup-kit-templatenode-wakeup
2.0.3

4 years ago

2.0.2

4 years ago

2.0.5

4 years ago

2.0.4

4 years ago

2.0.1

4 years ago

2.0.0-0

5 years ago

2.0.0

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.6.0

8 years ago

0.5.0

8 years ago

0.4.0

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago