assets/ -> resources/assets/
This commit is contained in:
34
resources/assets/build/webpack.config.watch.js
Normal file
34
resources/assets/build/webpack.config.watch.js
Normal 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,
|
||||
}),
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user