From: Sander Saarend Date: Thu, 29 Jun 2023 02:45:44 +0000 (+0300) Subject: Add publicPath for static js (#1672) X-Git-Url: http://these/git/%7B%60https:/readmes/static/gitweb.css?a=commitdiff_plain;h=0764b75dc267d8528950fae844bfc6ceff818877;p=lemmy-ui.git Add publicPath for static js (#1672) Co-authored-by: SleeplessOne1917 --- diff --git a/webpack.config.js b/webpack.config.js index 4d95a80..a2b31d0 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -96,6 +96,7 @@ const createClientConfig = (_env, mode) => { entry: "./src/client/index.tsx", output: { filename: "js/client.js", + publicPath: "/static/", }, plugins: [ ...base.plugins, @@ -106,7 +107,7 @@ const createClientConfig = (_env, mode) => { "/": "/static/", }, cacheId: "lemmy", - include: [/(assets|styles)\/.+\..+|client\.js$/g], + include: [/(assets|styles|js)\/.+\..+$/g], inlineWorkboxRuntime: true, runtimeCaching: [ {