Просмотр исходного кода

feat(dev): don't proxy fonts

Use the local ones, this simplifies testing adding icons, for example.
master
Saúl Ibarra Corretgé 6 лет назад
Родитель
Сommit
c9b910b1c1
1 измененных файлов: 2 добавлений и 1 удалений
  1. 2
    1
      webpack.config.js

+ 2
- 1
webpack.config.js Просмотреть файл

187
  * target, undefined; otherwise, the path to the local file to be served.
187
  * target, undefined; otherwise, the path to the local file to be served.
188
  */
188
  */
189
 function devServerProxyBypass({ path }) {
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
         return path;
192
         return path;
192
     }
193
     }
193
 
194
 

Загрузка…
Отмена
Сохранить