Browse Source

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

j8
Lyubo Marinov 7 years ago
parent
commit
53e1160a1c
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      webpack.config.js

+ 1
- 2
webpack.config.js View File

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…
Cancel
Save