Authored by 李奇

iview fonts url resolve

... ... @@ -24,7 +24,6 @@ const cssLoader = (env, type) => {
let loaders = [{
loader: 'css-loader',
options: {
url: false,
sourceMap: env === 'dev'
}
}];
... ... @@ -96,6 +95,14 @@ module.exports = (env) => {
use: [{
loader: 'happypack/loader?id=js'
}]
},
{
test: /\.(woff2?|svg|eot|ttf|otf)(\?.*)?$/,
loader: 'url-loader',
options: {
limit: 10000,
name: 'fonts/[name].[ext]'
}
}, {
test: /\.vue$/,
use: [{
... ...
... ... @@ -106,6 +106,7 @@
"eslint-loader": "^1.7.1",
"eslint-plugin-html": "^2.0.3",
"extract-text-webpack-plugin": "^2.1.0",
"file-loader": "^2.0.0",
"font-awesome": "^4.7.0",
"gentelella": "^1.3.0",
"gulp": "^3.9.1",
... ... @@ -150,6 +151,7 @@
"stylelint-processor-html": "^1.0.0",
"stylelint-webpack-plugin": "^0.7.0",
"uglifyjs-webpack-plugin": "^0.4.6",
"url-loader": "^1.1.1",
"vue": "^2.3.3",
"vue-loader": "^13.7.0",
"vue-router": "^3.0.1",
... ...
This diff could not be displayed because it is too large.
No preview for this file type
No preview for this file type
... ... @@ -102,6 +102,10 @@ agentkeepalive@3.3.0, agentkeepalive@^3.3.0:
dependencies:
humanize-ms "^1.2.1"
ajv-errors@^1.0.0:
version "1.0.0"
resolved "http://registry.npm.taobao.org/ajv-errors/download/ajv-errors-1.0.0.tgz#ecf021fa108fd17dfb5e6b383f2dd233e31ffc59"
ajv-keywords@^1.0.0, ajv-keywords@^1.1.1:
version "1.5.1"
resolved "http://npm.yohops.com/ajv-keywords/-/ajv-keywords-1.5.1.tgz#314dd0a4b3368fad3dfcdc54ede6171b886daf3c"
... ... @@ -3355,6 +3359,13 @@ file-entry-cache@^2.0.0:
flat-cache "^1.2.1"
object-assign "^4.0.1"
file-loader@^2.0.0:
version "2.0.0"
resolved "http://registry.npm.taobao.org/file-loader/download/file-loader-2.0.0.tgz#39749c82f020b9e85901dcff98e8004e6401cfde"
dependencies:
loader-utils "^1.0.2"
schema-utils "^1.0.0"
filename-regex@^2.0.0:
version "2.0.1"
resolved "http://npm.yohops.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26"
... ... @@ -5986,6 +5997,10 @@ mime@^1.3.4, mime@^1.5.0:
version "1.6.0"
resolved "http://npm.yohops.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1"
mime@^2.0.3:
version "2.3.1"
resolved "http://registry.npm.taobao.org/mime/download/mime-2.3.1.tgz#b1621c54d63b97c47d3cfe7f7215f7d64517c369"
mimic-fn@^1.0.0:
version "1.2.0"
resolved "http://npm.yohops.com/mimic-fn/-/mimic-fn-1.2.0.tgz#820c86a39334640e99516928bd03fca88057d022"
... ... @@ -8993,6 +9008,14 @@ schema-utils@^0.4.5:
ajv "^6.1.0"
ajv-keywords "^3.1.0"
schema-utils@^1.0.0:
version "1.0.0"
resolved "http://registry.npm.taobao.org/schema-utils/download/schema-utils-1.0.0.tgz#0b79a93204d7b600d4b2850d1f66c2a34951c770"
dependencies:
ajv "^6.1.0"
ajv-errors "^1.0.0"
ajv-keywords "^3.1.0"
scss-tokenizer@^0.2.3:
version "0.2.3"
resolved "http://npm.yohops.com/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz#8eb06db9a9723333824d3f5530641149847ce5d1"
... ... @@ -10461,6 +10484,14 @@ url-join@^1.1.0:
version "1.1.0"
resolved "http://npm.yohops.com/url-join/-/url-join-1.1.0.tgz#741c6c2f4596c4830d6718460920d0c92202dc78"
url-loader@^1.1.1:
version "1.1.1"
resolved "http://registry.npm.taobao.org/url-loader/download/url-loader-1.1.1.tgz#4d1f3b4f90dde89f02c008e662d604d7511167c1"
dependencies:
loader-utils "^1.1.0"
mime "^2.0.3"
schema-utils "^1.0.0"
url-parse-lax@^1.0.0:
version "1.0.0"
resolved "http://npm.yohops.com/url-parse-lax/-/url-parse-lax-1.0.0.tgz#7af8f303645e9bd79a272e7a14ac68bc0609da73"
... ...