ソースを参照

fix: webpack proxy fix

master
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;

読み込み中…
キャンセル
保存