Last active
April 23, 2018 13:33
-
-
Save BrRenat/3decec5e6ce42ca4db4e01c3db147d9c to your computer and use it in GitHub Desktop.
Random icons missed from sprite.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
test: /\.svg$/, | |
use: [ | |
{ | |
loader: 'svg-sprite-loader', | |
options: { | |
prefixize: true, | |
extract: true, | |
spriteFilename: svgPath => `images/sprite${svgPath.substr(-4)}` | |
} | |
}, | |
{ | |
loader: 'svgo-loader', | |
options: { | |
plugins: [ | |
{removeTitle: true}, | |
{convertColors: {shorthex: false}}, | |
{convertPathData: false} | |
] | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment