Browse Source

Добавил лодер для шрифтов

Book Pauk 6 years ago
parent
commit
991a5b6884
1 changed files with 7 additions and 0 deletions
  1. 7 0
      build/webpack.base.config.js

+ 7 - 0
build/webpack.base.config.js

@@ -42,6 +42,13 @@ module.exports = {
                     name: "images/[name]-[hash:6].[ext]"
                 }
             },
+            {
+                test: /\.(ttf|eot|woff)$/,
+                loader: "file-loader",
+                options: {
+                    prefix: "font/"
+                }
+            },
         ]
     },