Fix webpack publicPath to match server route.
This commit is contained in:
parent
78036394b1
commit
7fe28ef82e
|
@ -10,7 +10,7 @@ function packPage(page, chunks) {
|
||||||
return new HtmlWebpackPlugin({
|
return new HtmlWebpackPlugin({
|
||||||
template: `${root}/src/frontend/templates/${page}`,
|
template: `${root}/src/frontend/templates/${page}`,
|
||||||
filename: `${root}/generated/templates/${page}`,
|
filename: `${root}/generated/templates/${page}`,
|
||||||
publicPath: '/scripts/dist',
|
publicPath: '/',
|
||||||
scriptLoading: 'defer',
|
scriptLoading: 'defer',
|
||||||
chunks: chunks,
|
chunks: chunks,
|
||||||
inject: false,
|
inject: false,
|
||||||
|
|
Loading…
Reference in New Issue