Skip to content

Commit e8ca11a

Browse files
committed
Do not use a slash prefix for .setPublicPath() in webpack config. Webpack encore 5 seemed to have changed something, so that it does not get overriden anymore
We just get a warning, which we can ignore.
1 parent 24137b3 commit e8ca11a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ if (!Encore.isRuntimeEnvironmentConfigured()) {
3636
Encore
3737
// directory where compiled assets will be stored
3838
.setOutputPath('public/build/')
39-
// This value doesn't matter, as the public path is set to auto later down. This is just to prevent a warning
40-
.setPublicPath('/build')
39+
// Do not use a / prefix, here as that would break asset loading when serving Part-DB under a prefix!
40+
.setPublicPath('build')
4141
// only needed for CDN's or subdirectory deploy (this should not be needeed, as we use auto public path)
4242
//.setManifestKeyPrefix('build/')
4343

0 commit comments

Comments
 (0)