Update publicPath output to either use environment variable provided by developer building or default to '/' to avoid broken builds on Windows.
This commit is contained in:
parent
b4791144f2
commit
2546c986a6
2 changed files with 2 additions and 0 deletions
|
@ -109,6 +109,7 @@ const configuration: Configuration = {
|
||||||
|
|
||||||
output: {
|
output: {
|
||||||
pathinfo: true,
|
pathinfo: true,
|
||||||
|
publicPath: process.env.FE_SUBDIRECTORY || '/',
|
||||||
},
|
},
|
||||||
|
|
||||||
watchOptions: Object.assign(
|
watchOptions: Object.assign(
|
||||||
|
|
|
@ -25,6 +25,7 @@ const configuration: Configuration = {
|
||||||
filename: 'packs/js/[name]-[chunkhash].js',
|
filename: 'packs/js/[name]-[chunkhash].js',
|
||||||
chunkFilename: 'packs/js/[name]-[chunkhash].chunk.js',
|
chunkFilename: 'packs/js/[name]-[chunkhash].chunk.js',
|
||||||
hotUpdateChunkFilename: 'packs/js/[id]-[contenthash].hot-update.js',
|
hotUpdateChunkFilename: 'packs/js/[id]-[contenthash].hot-update.js',
|
||||||
|
publicPath: process.env.FE_SUBDIRECTORY || '/',
|
||||||
},
|
},
|
||||||
|
|
||||||
optimization: {
|
optimization: {
|
||||||
|
|
Loading…
Reference in a new issue