浏览代码

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",