Fix webpack publicPath to match server route.
This commit is contained in:
parent
9ca1f989c5
commit
e6845d8c7a
|
@ -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