Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danielbarion/rollup-plugin-browsersync
Serve your rolled up bundle via browsersync
https://github.com/danielbarion/rollup-plugin-browsersync
browsersync rollup rollup-plugin
Last synced: about 1 month ago
JSON representation
Serve your rolled up bundle via browsersync
- Host: GitHub
- URL: https://github.com/danielbarion/rollup-plugin-browsersync
- Owner: danielbarion
- License: mit
- Created: 2019-11-11T16:52:32.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-04T19:57:18.000Z (about 2 years ago)
- Last Synced: 2024-10-31T03:21:39.416Z (3 months ago)
- Topics: browsersync, rollup, rollup-plugin
- Language: JavaScript
- Size: 353 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
The browser will be opened only when the entire bundle process is complete and the files are saved.
This rollup plugin are inspired by [4lejandrito browsersync plugin](https://github.com/4lejandrito/rollup-plugin-browsersync).
# rollup-plugin-browsersync
Serve your bundle via Browser Sync## Installation
```
npm install @danielbarion/rollup-plugin-browsersync
```## Usage
```js
// rollup.config.js
import browsersync from '@danielbarion/rollup-plugin-browsersync'export default {
input: 'entry.js',
output: {
file: 'bundle.js'
},
plugins: [
browsersync({
server: 'build', // serve the `build` folder
watch: true,
port: 3000,
ui: {
port: 3001,
},
}),
]
}
```### Options
See [Browsersync options](https://browsersync.io/docs/options).
By default:
```js
{
server: '.'
}
```## Contributing
Contributions and feedback are very welcome.