Reorganize and refactor build routine
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
const webpack = require('webpack');
|
||||
const BrowserSyncPlugin = require('./webpack.plugin.browsersync');
|
||||
const mergeWithConcat = require('./util/mergeWithConcat');
|
||||
|
||||
const config = require('./config');
|
||||
|
||||
module.exports = {
|
||||
output: { pathinfo: true },
|
||||
devtool: '#cheap-module-source-map',
|
||||
stats: false,
|
||||
plugins: [
|
||||
new webpack.optimize.OccurrenceOrderPlugin(),
|
||||
new webpack.HotModuleReplacementPlugin(),
|
||||
@@ -15,9 +15,7 @@ module.exports = {
|
||||
target: config.devUrl,
|
||||
publicPath: config.publicPath,
|
||||
proxyUrl: config.proxyUrl,
|
||||
browserSyncOptions: mergeWithConcat({
|
||||
files: config.watch,
|
||||
}, config.browserSyncOptions),
|
||||
watch: config.watch,
|
||||
}),
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user