Fix browserSyncOptions in config.js not being passed to BrowserSync (#1732)
See: https://discourse.roots.io/t/sage-9-configure-browsersync/7808
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
const webpack = require('webpack');
|
const webpack = require('webpack');
|
||||||
const BrowserSyncPlugin = require('./webpack.plugin.browsersync');
|
const BrowserSyncPlugin = require('./webpack.plugin.browsersync');
|
||||||
|
const mergeWithConcat = require('./util/mergeWithConcat');
|
||||||
|
|
||||||
const config = require('./config');
|
const config = require('./config');
|
||||||
|
|
||||||
@@ -15,7 +16,9 @@ module.exports = {
|
|||||||
target: config.devUrl,
|
target: config.devUrl,
|
||||||
publicPath: config.publicPath,
|
publicPath: config.publicPath,
|
||||||
proxyUrl: config.proxyUrl,
|
proxyUrl: config.proxyUrl,
|
||||||
browserSyncOptions: { files: config.watch },
|
browserSyncOptions: mergeWithConcat({
|
||||||
|
files: config.watch,
|
||||||
|
}, config.browserSyncOptions),
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user