Quellcode durchsuchen

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

j8
Lyubo Marinov vor 7 Jahren
Ursprung
Commit
53e1160a1c
1 geänderte Dateien mit 1 neuen und 2 gelöschten Zeilen
  1. 1
    2
      webpack.config.js

+ 1
- 2
webpack.config.js Datei anzeigen

@@ -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
 

Laden…
Abbrechen
Speichern