Explorar el Código

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

j8
Lyubo Marinov hace 8 años
padre
commit
53e1160a1c
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1
    2
      webpack.config.js

+ 1
- 2
webpack.config.js Ver fichero

@@ -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…
Cancelar
Guardar