Procházet zdrojové kódy

feat(dev): don't proxy fonts

Use the local ones, this simplifies testing adding icons, for example.
master
Saúl Ibarra Corretgé před 7 roky
rodič
revize
c9b910b1c1
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2
    1
      webpack.config.js

+ 2
- 1
webpack.config.js Zobrazit soubor

@@ -187,7 +187,8 @@ module.exports = [
187 187
  * target, undefined; otherwise, the path to the local file to be served.
188 188
  */
189 189
 function devServerProxyBypass({ path }) {
190
-    if (path.startsWith('/css/') || path.startsWith('/doc/')) {
190
+    if (path.startsWith('/css/') || path.startsWith('/doc/')
191
+            || path.startsWith('/fonts/')) {
191 192
         return path;
192 193
     }
193 194
 

Načítá se…
Zrušit
Uložit