webpack_public_path: Replace with webpack 5 publicPath: "auto" setting.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-10-15 21:58:50 -07:00
committed by Tim Abbott
parent b605042312
commit 94934f49f9
8 changed files with 7 additions and 20 deletions

View File

@@ -163,7 +163,7 @@ export default (
},
output: {
path: path.resolve(__dirname, "../static/webpack-bundles"),
publicPath: "",
publicPath: "auto",
filename: production ? "[name].[contenthash].js" : "[name].js",
assetModuleFilename: production
? "files/[name].[hash][ext][query]"