mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-25 23:43:28 +00:00
fix service worker path
This commit is contained in:
parent
da45ffb46b
commit
1b7a9dcb8b
|
@ -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