Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/4lejandrito/rollup-plugin-browsersync

Serve your bundle via Browser Sync
https://github.com/4lejandrito/rollup-plugin-browsersync

Last synced: 25 days ago
JSON representation

Serve your bundle via Browser Sync

Awesome Lists containing this project

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.