فهرست منبع

build: add writeToDisk to webpack-dev-server config

This avoids problems with live reloading in some environments.
Samuel Padgett 4 سال پیش
والد
کامیت
72717ae237
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  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-Headers": "X-Requested-With, Content-Type, Authorization"
     },
+    devMiddleware: {
+      writeToDisk: true,
+    },
   },
   plugins: [new ConsoleRemotePlugin()],
   devtool: "source-map",