Give devs more options for dynamically setting publicPath
This commit is contained in:
@@ -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,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user