From e8ca11a5cf59c456da4996a846b942f0b01b7061 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Tue, 7 Jan 2025 16:14:21 +0100 Subject: [PATCH] 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. --- webpack.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 77cab81e..46dad39f 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -36,8 +36,8 @@ if (!Encore.isRuntimeEnvironmentConfigured()) { Encore // directory where compiled assets will be stored .setOutputPath('public/build/') - // This value doesn't matter, as the public path is set to auto later down. This is just to prevent a warning - .setPublicPath('/build') + // Do not use a / prefix, here as that would break asset loading when serving Part-DB under a prefix! + .setPublicPath('build') // only needed for CDN's or subdirectory deploy (this should not be needeed, as we use auto public path) //.setManifestKeyPrefix('build/')