build: upgrade svgr

This commit is contained in:
EnixCoda 2018-11-06 11:05:36 +08:00
parent 009af163ec
commit cef3513755
No known key found for this signature in database
GPG key ID: 0C1A07377913A1DD
2 changed files with 7 additions and 2 deletions

View file

@ -24,6 +24,7 @@
"safe-touch": "^0.2.2"
},
"devDependencies": {
"@svgr/webpack": "^4.1.0",
"@types/chrome": "^0.0.77",
"@types/ini": "^1.3.30",
"@types/js-base64": "^2.3.1",
@ -55,7 +56,6 @@
"less-loader": "^4.0.5",
"react-life-hook": "^0.2.0",
"style-loader": "^0.19.0",
"svgr": "^1.6.0",
"typescript": "^3.2.2",
"uglifyjs-webpack-plugin": "^1.1.1",
"url-loader": "^0.6.2",

View file

@ -83,7 +83,12 @@ module.exports = {
{
test: /\.svg$/,
resourceQuery: /svgr/,
loader: ['babel-loader', 'svgr/webpack'],
use: [
{
loader: '@svgr/webpack',
options: { svgo: false },
},
],
include: [srcPath],
},
{