mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-25 13:51:13 +00:00
Add publicPath for static js (#1672)
Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
This commit is contained in:
parent
a077924f38
commit
0764b75dc2
1 changed files with 2 additions and 1 deletions
|
@ -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: [
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue