projects
/
lemmy-ui.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a077924
)
Add publicPath for static js (#1672)
author
Sander Saarend
<sander@saarend.com>
Thu, 29 Jun 2023 02:45:44 +0000
(
05:45
+0300)
committer
GitHub
<noreply@github.com>
Thu, 29 Jun 2023 02:45:44 +0000
(22:45 -0400)
Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
webpack.config.js
patch
|
blob
|
history
diff --git
a/webpack.config.js
b/webpack.config.js
index 4d95a80c1484e30b5bde627261f25f1a3d57923f..a2b31d04383f752d93d99a739fd9fad42ab044c8 100644
(file)
--- 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: [
{