Fix webpack publicPath to match server route.

This commit is contained in:
projectmoon 2021-01-09 19:41:57 +00:00
parent 78036394b1
commit 7fe28ef82e
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ function packPage(page, chunks) {
return new HtmlWebpackPlugin({
template: `${root}/src/frontend/templates/${page}`,
filename: `${root}/generated/templates/${page}`,
publicPath: '/scripts/dist',
publicPath: '/',
scriptLoading: 'defer',
chunks: chunks,
inject: false,