Give devs more options for dynamically setting publicPath

This commit is contained in:
QWp6t
2017-01-09 16:22:23 -08:00
parent d06e72e20c
commit bdaf038248
4 changed files with 31 additions and 19 deletions

View File

@@ -4,7 +4,10 @@ const BrowserSyncPlugin = require('browsersync-webpack-plugin');
const config = require('./config');
module.exports = {
output: { pathinfo: true },
output: {
pathinfo: true,
publicPath: config.proxyUrl + config.publicPath,
},
devtool: '#cheap-module-source-map',
stats: false,
plugins: [
@@ -13,7 +16,7 @@ module.exports = {
new webpack.NoErrorsPlugin(),
new BrowserSyncPlugin({
target: config.devUrl,
publicPath: config.publicPath,
publicPath: '../',
proxyUrl: config.proxyUrl,
watch: config.watch,
}),