assets/ -> resources/assets/

This commit is contained in:
Ben Word
2017-04-03 18:33:06 -06:00
parent 700a556c02
commit c3e6f1324e
35 changed files with 21 additions and 21 deletions

View File

@@ -0,0 +1,34 @@
const url = require('url');
const webpack = require('webpack');
const BrowserSyncPlugin = require('browsersync-webpack-plugin');
const config = require('./config');
const target = process.env.DEVURL || config.devUrl;
/**
* We do this to enable injection over SSL.
*/
if (url.parse(target).protocol === 'https:') {
process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0;
}
module.exports = {
output: {
pathinfo: true,
publicPath: config.proxyUrl + config.publicPath,
},
devtool: '#cheap-module-source-map',
stats: false,
plugins: [
new webpack.optimize.OccurrenceOrderPlugin(),
new webpack.HotModuleReplacementPlugin(),
new webpack.NoEmitOnErrorsPlugin(),
new BrowserSyncPlugin({
target,
proxyUrl: config.proxyUrl,
watch: config.watch,
delay: 500,
}),
],
};