From fa5f5e9d2634307cad7ef98b6687ed7eb9c8b7a4 Mon Sep 17 00:00:00 2001 From: Hex Date: Fri, 8 Sep 2017 15:37:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8E=20vue-cli=20webpack=20=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E4=B8=8D=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/webpack.base.conf.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index bbf6c681..d82a880c 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -68,7 +68,7 @@ module.exports = { test: /\.(png|jpe?g|gif|svg)(\?.*)?$/, loader: 'url-loader', exclude: [resolve('src/icons')], - query: { + options: { limit: 10000, name: utils.assetsPath('img/[name].[hash:7].[ext]') } @@ -76,7 +76,7 @@ module.exports = { { test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/, loader: 'url-loader', - query: { + options: { limit: 10000, name: utils.assetsPath('fonts/[name].[hash:7].[ext]') }