瀏覽代碼

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

j8
Lyubo Marinov 7 年之前
父節點
當前提交
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
 

Loading…
取消
儲存