Package Exports
- browser-sync-webpack-plugin
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (browser-sync-webpack-plugin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
BrowserSync plugin for Webpack
Easily use BrowserSync in your Webpack project.
Install:
$ npm install --save-dev browser-sync-webpack-plugin
Usage:
In your webpack.config.js
:
var BrowserSyncPlugin = require('extract-text-webpack-plugin');
module.exports = {
...
plugins: [
new BrowserSyncPlugin({
host: 'localhost',
port: 3000,
server: { baseDir: ['public'] }
})
]
}
BrowserSync will start only when you run Webpack in watch mode:
$ webpack --watch
Options:
Plugin accepts any BrowserSync options.