Add publicPath for static js (#1672)

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
This commit is contained in:
Sander Saarend 2023-06-29 05:45:44 +03:00 committed by GitHub
parent a077924f38
commit 0764b75dc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: [
{