瀏覽代碼

fix: webpack proxy fix

j8
Bettenbuk Zoltan 6 年之前
父節點
當前提交
256994e1f8
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1
    3
      webpack.config.js

+ 1
- 3
webpack.config.js 查看文件

@@ -254,7 +254,7 @@ function devServerProxyBypass({ path }) {
254 254
                         // Since webpack-dev-server is serving non-minimized
255 255
                         // artifacts, serve them even if the minimized ones are
256 256
                         // requested.
257
-                        Object.keys(c.entry).some(e => {
257
+                        return Object.keys(c.entry).some(e => {
258 258
                             const name = `${e}.min.js`;
259 259
 
260 260
                             if (path.indexOf(name) !== -1) {
@@ -265,8 +265,6 @@ function devServerProxyBypass({ path }) {
265 265
                             }
266 266
                         });
267 267
                     }
268
-
269
-                    return true;
270 268
                 }
271 269
             })) {
272 270
         return path;

Loading…
取消
儲存