Skip to content

Commit 352c011

Browse files
committed
add cruft pattern to svg-sprite regex
1 parent 019cc6c commit 352c011

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template/build/webpack.base.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ module.exports = {
7777
{{/if}}
7878
{{#if svg}}
7979
{
80-
test: /\.svg$/,
80+
test: /\.svg(\?.*)?$/,
8181
loader: 'svg-sprite?' + JSON.stringify({
8282
name: '[name]_[hash]',
8383
spriteModule: 'utils/sprite',

0 commit comments

Comments
 (0)