});
if (mode === "development") {
- config.cache = {
- type: "filesystem",
- name: "server",
- };
+ // config.cache = {
+ // type: "filesystem",
+ // name: "server",
+ // };
config.plugins.push(
new RunNodeWebpackPlugin({
plugins: [
...base.plugins,
new ServiceWorkerPlugin({
- enableInDevelopment: true,
+ enableInDevelopment: mode !== "development", // this may seem counterintuitive, but it is correct
workbox: {
modifyURLPrefix: {
"/": "/static/",
});
if (mode === "development") {
- config.cache = {
- type: "filesystem",
- name: "client",
- };
+ // config.cache = {
+ // type: "filesystem",
+ // name: "client",
+ // };
}
return config;