ソースを参照

[webpack-dev-server] Serve more local resources/files

j8
Lyubo Marinov 8年前
コミット
53e1160a1c
1個のファイルの変更1行の追加2行の削除
  1. 1
    2
      webpack.config.js

+ 1
- 2
webpack.config.js ファイルの表示

@@ -207,8 +207,7 @@ module.exports = [
207 207
  * target, undefined; otherwise, the path to the local file to be served.
208 208
  */
209 209
 function devServerProxyBypass({ path }) {
210
-    // Use local files from the css and libs directories.
211
-    if (path.startsWith('/css/')) {
210
+    if (path.startsWith('/css/') || path.startsWith('/doc/')) {
212 211
         return path;
213 212
     }
214 213
 

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