iview fonts url resolve
Showing
6 changed files
with
41 additions
and
1 deletions
@@ -24,7 +24,6 @@ const cssLoader = (env, type) => { | @@ -24,7 +24,6 @@ const cssLoader = (env, type) => { | ||
24 | let loaders = [{ | 24 | let loaders = [{ |
25 | loader: 'css-loader', | 25 | loader: 'css-loader', |
26 | options: { | 26 | options: { |
27 | - url: false, | ||
28 | sourceMap: env === 'dev' | 27 | sourceMap: env === 'dev' |
29 | } | 28 | } |
30 | }]; | 29 | }]; |
@@ -96,6 +95,14 @@ module.exports = (env) => { | @@ -96,6 +95,14 @@ module.exports = (env) => { | ||
96 | use: [{ | 95 | use: [{ |
97 | loader: 'happypack/loader?id=js' | 96 | loader: 'happypack/loader?id=js' |
98 | }] | 97 | }] |
98 | + }, | ||
99 | + { | ||
100 | + test: /\.(woff2?|svg|eot|ttf|otf)(\?.*)?$/, | ||
101 | + loader: 'url-loader', | ||
102 | + options: { | ||
103 | + limit: 10000, | ||
104 | + name: 'fonts/[name].[ext]' | ||
105 | + } | ||
99 | }, { | 106 | }, { |
100 | test: /\.vue$/, | 107 | test: /\.vue$/, |
101 | use: [{ | 108 | use: [{ |
@@ -106,6 +106,7 @@ | @@ -106,6 +106,7 @@ | ||
106 | "eslint-loader": "^1.7.1", | 106 | "eslint-loader": "^1.7.1", |
107 | "eslint-plugin-html": "^2.0.3", | 107 | "eslint-plugin-html": "^2.0.3", |
108 | "extract-text-webpack-plugin": "^2.1.0", | 108 | "extract-text-webpack-plugin": "^2.1.0", |
109 | + "file-loader": "^2.0.0", | ||
109 | "font-awesome": "^4.7.0", | 110 | "font-awesome": "^4.7.0", |
110 | "gentelella": "^1.3.0", | 111 | "gentelella": "^1.3.0", |
111 | "gulp": "^3.9.1", | 112 | "gulp": "^3.9.1", |
@@ -150,6 +151,7 @@ | @@ -150,6 +151,7 @@ | ||
150 | "stylelint-processor-html": "^1.0.0", | 151 | "stylelint-processor-html": "^1.0.0", |
151 | "stylelint-webpack-plugin": "^0.7.0", | 152 | "stylelint-webpack-plugin": "^0.7.0", |
152 | "uglifyjs-webpack-plugin": "^0.4.6", | 153 | "uglifyjs-webpack-plugin": "^0.4.6", |
154 | + "url-loader": "^1.1.1", | ||
153 | "vue": "^2.3.3", | 155 | "vue": "^2.3.3", |
154 | "vue-loader": "^13.7.0", | 156 | "vue-loader": "^13.7.0", |
155 | "vue-router": "^3.0.1", | 157 | "vue-router": "^3.0.1", |
public/fonts/ionicons.svg
0 → 100755
This diff could not be displayed because it is too large.
public/fonts/ionicons.ttf
0 → 100755
No preview for this file type
public/fonts/ionicons.woff
0 → 100755
No preview for this file type
@@ -102,6 +102,10 @@ agentkeepalive@3.3.0, agentkeepalive@^3.3.0: | @@ -102,6 +102,10 @@ agentkeepalive@3.3.0, agentkeepalive@^3.3.0: | ||
102 | dependencies: | 102 | dependencies: |
103 | humanize-ms "^1.2.1" | 103 | humanize-ms "^1.2.1" |
104 | 104 | ||
105 | +ajv-errors@^1.0.0: | ||
106 | + version "1.0.0" | ||
107 | + resolved "http://registry.npm.taobao.org/ajv-errors/download/ajv-errors-1.0.0.tgz#ecf021fa108fd17dfb5e6b383f2dd233e31ffc59" | ||
108 | + | ||
105 | ajv-keywords@^1.0.0, ajv-keywords@^1.1.1: | 109 | ajv-keywords@^1.0.0, ajv-keywords@^1.1.1: |
106 | version "1.5.1" | 110 | version "1.5.1" |
107 | resolved "http://npm.yohops.com/ajv-keywords/-/ajv-keywords-1.5.1.tgz#314dd0a4b3368fad3dfcdc54ede6171b886daf3c" | 111 | resolved "http://npm.yohops.com/ajv-keywords/-/ajv-keywords-1.5.1.tgz#314dd0a4b3368fad3dfcdc54ede6171b886daf3c" |
@@ -3355,6 +3359,13 @@ file-entry-cache@^2.0.0: | @@ -3355,6 +3359,13 @@ file-entry-cache@^2.0.0: | ||
3355 | flat-cache "^1.2.1" | 3359 | flat-cache "^1.2.1" |
3356 | object-assign "^4.0.1" | 3360 | object-assign "^4.0.1" |
3357 | 3361 | ||
3362 | +file-loader@^2.0.0: | ||
3363 | + version "2.0.0" | ||
3364 | + resolved "http://registry.npm.taobao.org/file-loader/download/file-loader-2.0.0.tgz#39749c82f020b9e85901dcff98e8004e6401cfde" | ||
3365 | + dependencies: | ||
3366 | + loader-utils "^1.0.2" | ||
3367 | + schema-utils "^1.0.0" | ||
3368 | + | ||
3358 | filename-regex@^2.0.0: | 3369 | filename-regex@^2.0.0: |
3359 | version "2.0.1" | 3370 | version "2.0.1" |
3360 | resolved "http://npm.yohops.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26" | 3371 | 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: | @@ -5986,6 +5997,10 @@ mime@^1.3.4, mime@^1.5.0: | ||
5986 | version "1.6.0" | 5997 | version "1.6.0" |
5987 | resolved "http://npm.yohops.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" | 5998 | resolved "http://npm.yohops.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" |
5988 | 5999 | ||
6000 | +mime@^2.0.3: | ||
6001 | + version "2.3.1" | ||
6002 | + resolved "http://registry.npm.taobao.org/mime/download/mime-2.3.1.tgz#b1621c54d63b97c47d3cfe7f7215f7d64517c369" | ||
6003 | + | ||
5989 | mimic-fn@^1.0.0: | 6004 | mimic-fn@^1.0.0: |
5990 | version "1.2.0" | 6005 | version "1.2.0" |
5991 | resolved "http://npm.yohops.com/mimic-fn/-/mimic-fn-1.2.0.tgz#820c86a39334640e99516928bd03fca88057d022" | 6006 | resolved "http://npm.yohops.com/mimic-fn/-/mimic-fn-1.2.0.tgz#820c86a39334640e99516928bd03fca88057d022" |
@@ -8993,6 +9008,14 @@ schema-utils@^0.4.5: | @@ -8993,6 +9008,14 @@ schema-utils@^0.4.5: | ||
8993 | ajv "^6.1.0" | 9008 | ajv "^6.1.0" |
8994 | ajv-keywords "^3.1.0" | 9009 | ajv-keywords "^3.1.0" |
8995 | 9010 | ||
9011 | +schema-utils@^1.0.0: | ||
9012 | + version "1.0.0" | ||
9013 | + resolved "http://registry.npm.taobao.org/schema-utils/download/schema-utils-1.0.0.tgz#0b79a93204d7b600d4b2850d1f66c2a34951c770" | ||
9014 | + dependencies: | ||
9015 | + ajv "^6.1.0" | ||
9016 | + ajv-errors "^1.0.0" | ||
9017 | + ajv-keywords "^3.1.0" | ||
9018 | + | ||
8996 | scss-tokenizer@^0.2.3: | 9019 | scss-tokenizer@^0.2.3: |
8997 | version "0.2.3" | 9020 | version "0.2.3" |
8998 | resolved "http://npm.yohops.com/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz#8eb06db9a9723333824d3f5530641149847ce5d1" | 9021 | resolved "http://npm.yohops.com/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz#8eb06db9a9723333824d3f5530641149847ce5d1" |
@@ -10461,6 +10484,14 @@ url-join@^1.1.0: | @@ -10461,6 +10484,14 @@ url-join@^1.1.0: | ||
10461 | version "1.1.0" | 10484 | version "1.1.0" |
10462 | resolved "http://npm.yohops.com/url-join/-/url-join-1.1.0.tgz#741c6c2f4596c4830d6718460920d0c92202dc78" | 10485 | resolved "http://npm.yohops.com/url-join/-/url-join-1.1.0.tgz#741c6c2f4596c4830d6718460920d0c92202dc78" |
10463 | 10486 | ||
10487 | +url-loader@^1.1.1: | ||
10488 | + version "1.1.1" | ||
10489 | + resolved "http://registry.npm.taobao.org/url-loader/download/url-loader-1.1.1.tgz#4d1f3b4f90dde89f02c008e662d604d7511167c1" | ||
10490 | + dependencies: | ||
10491 | + loader-utils "^1.1.0" | ||
10492 | + mime "^2.0.3" | ||
10493 | + schema-utils "^1.0.0" | ||
10494 | + | ||
10464 | url-parse-lax@^1.0.0: | 10495 | url-parse-lax@^1.0.0: |
10465 | version "1.0.0" | 10496 | version "1.0.0" |
10466 | resolved "http://npm.yohops.com/url-parse-lax/-/url-parse-lax-1.0.0.tgz#7af8f303645e9bd79a272e7a14ac68bc0609da73" | 10497 | resolved "http://npm.yohops.com/url-parse-lax/-/url-parse-lax-1.0.0.tgz#7af8f303645e9bd79a272e7a14ac68bc0609da73" |
-
Please register or login to post a comment