X-Git-Url: http://these/git/?a=blobdiff_plain;f=webpack.config.js;h=67b10a986fdbd5691e158febe36e9b6ab5185668;hb=2b1af707c3df6126b3e6890106c03c60ad49b1be;hp=51ca81db3e6ce11c21b2d1075f5ccbb515479f58;hpb=f61037f5d89f12818c8100f907a98b74e980112a;p=lemmy-ui.git diff --git a/webpack.config.js b/webpack.config.js index 51ca81d..67b10a9 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -69,10 +69,10 @@ const createServerConfig = (_env, mode) => { }); if (mode === "development") { - config.cache = { - type: "filesystem", - name: "server", - }; + // config.cache = { + // type: "filesystem", + // name: "server", + // }; config.plugins.push( new RunNodeWebpackPlugin({ @@ -94,7 +94,7 @@ const createClientConfig = (_env, mode) => { plugins: [ ...base.plugins, new ServiceWorkerPlugin({ - enableInDevelopment: true, + enableInDevelopment: mode !== "development", // this may seem counterintuitive, but it is correct workbox: { modifyURLPrefix: { "/": "/static/", @@ -149,10 +149,10 @@ const createClientConfig = (_env, mode) => { }); if (mode === "development") { - config.cache = { - type: "filesystem", - name: "client", - }; + // config.cache = { + // type: "filesystem", + // name: "client", + // }; } return config;