Przeglądaj źródła

build: add writeToDisk to webpack-dev-server config

This avoids problems with live reloading in some environments.
Samuel Padgett 4 lat temu
rodzic
commit
72717ae237
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      webpack.config.ts

+ 3 - 0
webpack.config.ts

@@ -63,6 +63,9 @@ const config: Configuration = {
       "Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, PATCH, OPTIONS",
       "Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, PATCH, OPTIONS",
       "Access-Control-Allow-Headers": "X-Requested-With, Content-Type, Authorization"
       "Access-Control-Allow-Headers": "X-Requested-With, Content-Type, Authorization"
     },
     },
+    devMiddleware: {
+      writeToDisk: true,
+    },
   },
   },
   plugins: [new ConsoleRemotePlugin()],
   plugins: [new ConsoleRemotePlugin()],
   devtool: "source-map",
   devtool: "source-map",