fix service worker path
This commit is contained in:
parent
da45ffb46b
commit
1b7a9dcb8b
1 changed files with 0 additions and 3 deletions
|
@ -111,9 +111,6 @@ const createClientConfig = (env, mode) => {
|
||||||
new ServiceWorkerPlugin({
|
new ServiceWorkerPlugin({
|
||||||
enableInDevelopment: mode !== "development", // this may seem counterintuitive, but it is correct
|
enableInDevelopment: mode !== "development", // this may seem counterintuitive, but it is correct
|
||||||
workbox: {
|
workbox: {
|
||||||
modifyURLPrefix: {
|
|
||||||
"/": `/static/${env.COMMIT_HASH}/`,
|
|
||||||
},
|
|
||||||
cacheId: "lemmy",
|
cacheId: "lemmy",
|
||||||
include: [/(assets|styles|js)\/.+\..+$/g],
|
include: [/(assets|styles|js)\/.+\..+$/g],
|
||||||
inlineWorkboxRuntime: true,
|
inlineWorkboxRuntime: true,
|
||||||
|
|
Loading…
Reference in a new issue