diff --git a/webpack.config.js b/webpack.config.js index 4d95a80c..a2b31d04 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: [ {