Pārlūkot izejas kodu

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

j8
Lyubo Marinov 7 gadus atpakaļ
vecāks
revīzija
53e1160a1c
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. 1
    2
      webpack.config.js

+ 1
- 2
webpack.config.js Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt