소스 검색

[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
  * target, undefined; otherwise, the path to the local file to be served.
207
  * target, undefined; otherwise, the path to the local file to be served.
208
  */
208
  */
209
 function devServerProxyBypass({ path }) {
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
         return path;
211
         return path;
213
     }
212
     }
214
 
213
 

Loading…
취소
저장