Pass config.open to browsersync-webpack-plugin

This commit is contained in:
Jan Grzegorowski
2017-07-01 19:39:12 -07:00
committed by
parent a67d5001f3
commit a429115fb2
5 changed files with 29 additions and 17 deletions

View File

@@ -12,6 +12,7 @@ const rootPath = (userConfig.paths && userConfig.paths.root)
: process.cwd();
const config = merge({
open: true,
copy: 'images/**/*',
proxyUrl: 'http://localhost:3000',
cacheBusting: '[name]_[hash]',

View File

@@ -26,6 +26,7 @@ module.exports = {
new webpack.NoEmitOnErrorsPlugin(),
new BrowserSyncPlugin({
target,
open: config.open,
proxyUrl: config.proxyUrl,
watch: config.watch,
delay: 500,