external-svg-sprite-loader helps me save a good clean sprite.[hash:8].svg file!
I've tried to use it with webpack-manifest-plugin and webpack-assets-manifest to generate a manifest.json, used to find the corresponding compiled /path/to/sprite.svg -> /path/to/sprite.[hash:8].svg
But I can not obtain the good filename and path to my sprite.svg file. Note that webpack-manifest-plugin and webpack-assets-manifest generate the good filenames when used with other loaders.
my config:
loader: ExternalSvgSprite.loader,
options: {
name: 'img/sprite.[hash:8].svg',
}
what I would like to see in my manifest.json file:
{
"img/sprite.svg": "img/sprite.8ef417c3.svg",
}
what I get with webpack-manifest-plugin, left part should not have the hash part. :
{
"img/sprite.8ef417c3.svg": "img/sprite.8ef417c3.svg",
}
what I get with webpack-assets-manifest, left part should be img/sprite.svg :
{
"sprite.svg": "img/sprite.8ef417c3.svg",
}
I'm not able to know if it's really a problem with external-svg-sprite-loader, but as the results are not consistent I ask here.
external-svg-sprite-loader helps me save a good clean sprite.[hash:8].svg file!
I've tried to use it with webpack-manifest-plugin and webpack-assets-manifest to generate a manifest.json, used to find the corresponding compiled /path/to/sprite.svg -> /path/to/sprite.[hash:8].svg
But I can not obtain the good filename and path to my sprite.svg file. Note that webpack-manifest-plugin and webpack-assets-manifest generate the good filenames when used with other loaders.
my config:
what I would like to see in my manifest.json file:
what I get with webpack-manifest-plugin, left part should not have the hash part. :
what I get with webpack-assets-manifest, left part should be img/sprite.svg :
I'm not able to know if it's really a problem with external-svg-sprite-loader, but as the results are not consistent I ask here.