rollup-plugin-browsersync

Serve your rolled up bundle via browsersync

Usage no npm install needed!

<script type="module">
  import rollupPluginBrowsersync from 'https://cdn.skypack.dev/rollup-plugin-browsersync';
</script>

README

rollup-plugin-browsersync

Serve your bundle via Browser Sync

npm version Build

Installation

npm install --save-dev rollup-plugin-browsersync

Usage

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

export default {
  input: 'entry.js',
  output: {
    file: 'bundle.js'
  },
  plugins: [
    browsersync({server: 'dist'})
  ]
}

Options

See Browsersync options.

By default:

{
    server: '.'
}

Contributing

Contributions and feedback are very welcome.