Skip to content

Instantly share code, notes, and snippets.

@BrRenat
Last active April 23, 2018 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrRenat/3decec5e6ce42ca4db4e01c3db147d9c to your computer and use it in GitHub Desktop.
Save BrRenat/3decec5e6ce42ca4db4e01c3db147d9c to your computer and use it in GitHub Desktop.
Random icons missed from sprite.
{
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