mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-21 22:27:11 +00:00
Add publicPath for static js (#1672)
Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
This commit is contained in:
parent
a077924f38
commit
0764b75dc2
|
@ -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