rollup-plugin-browsersync
Version:
Serve your rolled up bundle via browsersync
42 lines (32 loc) • 870 B
Markdown
# rollup-plugin-browsersync
Serve your bundle via Browser Sync
[](https://badge.fury.io/js/rollup-plugin-browsersync)
[](https://github.com/4lejandrito/rollup-plugin-browsersync/actions?query=workflow%3ABuild+branch%3Amaster)
## Installation
```
npm install --save-dev rollup-plugin-browsersync
```
## Usage
```js
// 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](https://browsersync.io/docs/options).
By default:
```js
{
server: '.'
}
```
## Contributing
Contributions and feedback are very welcome.