Files
sage/assets/build/webpack.config.watch.js
2017-01-03 08:40:55 -08:00

22 lines
556 B
JavaScript

const webpack = require('webpack');
const BrowserSyncPlugin = require('browsersync-webpack-plugin');
const config = require('./config');
module.exports = {
output: { pathinfo: true },
devtool: '#cheap-module-source-map',
stats: false,
plugins: [
new webpack.optimize.OccurrenceOrderPlugin(),
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin(),
new BrowserSyncPlugin({
target: config.devUrl,
publicPath: config.publicPath,
proxyUrl: config.proxyUrl,
watch: config.watch,
}),
],
};