Skip to content

Commit

Permalink
Use url-loader to inline svg images
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Mar 5, 2017
1 parent fce3e08 commit 35e4e58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webpack.webconfig.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module.exports = {
]
},
{
test: /\.(png|jpg)$/,
test: /\.(png|jpg|svg)$/,
loader: 'url-loader',
options: {
limit: 8192
Expand All @@ -70,7 +70,7 @@ module.exports = {
}
},
{
test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
test: /\.(ttf|eot)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
loader: 'file-loader'
}
]
Expand Down

0 comments on commit 35e4e58

Please sign in to comment.