Skip to content

Commit

Permalink
Add publicPath for static js
Browse files Browse the repository at this point in the history
  • Loading branch information
sunaurus committed Jun 28, 2023
1 parent d5c45aa commit e9f1882
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ const createClientConfig = (_env, mode) => {
entry: "./src/client/index.tsx",
output: {
filename: "js/client.js",
publicPath: "/static/",
},
plugins: [
...base.plugins,
Expand All @@ -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: [
{
Expand Down

0 comments on commit e9f1882

Please sign in to comment.