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:
Elaine Jackson 2023-07-16 15:14:28 +00:00
parent b4791144f2
commit 2546c986a6
2 changed files with 2 additions and 0 deletions

View file

@ -109,6 +109,7 @@ const configuration: Configuration = {
output: { output: {
pathinfo: true, pathinfo: true,
publicPath: process.env.FE_SUBDIRECTORY || '/',
}, },
watchOptions: Object.assign( watchOptions: Object.assign(

View file

@ -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: {