Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/4lejandrito/rollup-plugin-browsersync
Serve your bundle via Browser Sync
https://github.com/4lejandrito/rollup-plugin-browsersync
Last synced: 12 days ago
JSON representation
Serve your bundle via Browser Sync
- Host: GitHub
- URL: https://github.com/4lejandrito/rollup-plugin-browsersync
- Owner: 4lejandrito
- License: mit
- Created: 2017-08-14T11:14:44.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-09-27T06:44:26.000Z (about 1 month ago)
- Last Synced: 2024-10-12T23:10:59.743Z (27 days ago)
- Language: JavaScript
- Size: 311 KB
- Stars: 19
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome - browsersync
README
# rollup-plugin-browsersync
Serve your bundle via Browser Sync[![npm version](https://badge.fury.io/js/rollup-plugin-browsersync.svg)](https://badge.fury.io/js/rollup-plugin-browsersync)
[![Build](https://github.com/4lejandrito/rollup-plugin-browsersync/workflows/Build/badge.svg)](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.