From 0764b75dc267d8528950fae844bfc6ceff818877 Mon Sep 17 00:00:00 2001 From: Sander Saarend Date: Thu, 29 Jun 2023 05:45:44 +0300 Subject: [PATCH] Add publicPath for static js (#1672) Co-authored-by: SleeplessOne1917 --- webpack.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: [ { -- 2.44.1