Skip to content

Commit

Permalink
fix: 修改svg loader
Browse files Browse the repository at this point in the history
  • Loading branch information
yangchch6 committed Aug 20, 2020
1 parent 129a4da commit 04e1339
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/webpack/webpack.base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,8 @@ module.exports = () => {
}]
},
{
test: /\.(eot|ttf|woff|woff2)(\?\S*)?$/,
test: /\.(eot|ttf|woff|woff2|svg)(\?\S*)?$/,
loader: require.resolve('url-loader')
},
{
test: /\.svg$/,
loader: require.resolve('@svgr/webpack')
}
]
}
Expand Down

0 comments on commit 04e1339

Please sign in to comment.