Permalink
Browse files

添加使用 svg 来显示的 icon

  • Loading branch information...
gaofei123123 committed Dec 26, 2017
1 parent 357df15 commit 32735b2998290ca7558a1bfe0ec8b9c368893703
@@ -51,9 +51,18 @@ module.exports = {
loader: 'babel-loader',
include: [resolve('src'), resolve('test')]
},
{
test: /\.svg$/,
loader: 'svg-sprite-loader',
include: [resolve('src/icons')],
options: {
symbolId: 'icon-[name]'
}
},
{
test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
loader: 'url-loader',
exclude: [resolve('src/icons')],
options: {
limit: 10000,
name: utils.assetsPath('img/[name].[hash:7].[ext]')
Oops, something went wrong.

0 comments on commit 32735b2

Please sign in to comment.