浏览代码

Поправки конфига webpack

Book Pauk 6 年之前
父节点
当前提交
cff5f9e492
共有 1 个文件被更改,包括 3 次插入5 次删除
  1. 3 5
      build/webpack.base.config.js

+ 3 - 5
build/webpack.base.config.js

@@ -33,16 +33,14 @@ module.exports = {
                 test: /\.gif$/,
                 test: /\.gif$/,
                 loader: "url-loader",
                 loader: "url-loader",
                 options: {
                 options: {
-                    name: "images/[name]-[hash:6].[ext]",
-                    limit: 10000
+                    name: "images/[name]-[hash:6].[ext]"
                 }
                 }
             },
             },
             {
             {
                 test: /\.png$/,
                 test: /\.png$/,
                 loader: "url-loader",
                 loader: "url-loader",
                 options: {
                 options: {
-                    name: "images/[name]-[hash:6].[ext]",
-                    limit: 10000
+                    name: "images/[name]-[hash:6].[ext]"
                 }
                 }
             },
             },
             {
             {
@@ -56,7 +54,7 @@ module.exports = {
                 test: /\.(ttf|eot|woff|woff2)$/,
                 test: /\.(ttf|eot|woff|woff2)$/,
                 loader: "file-loader",
                 loader: "file-loader",
                 options: {
                 options: {
-                    prefix: "font/"
+                    name: "fonts/[name]-[hash:6].[ext]"
                 }
                 }
             },
             },
         ]
         ]