Closed Diono closed 3 years ago
Hmmm, that's an interesting one but I'm sure it's fixable. I'll look into this later this week. Thanks for reporting! :v:
@Diono, can you check if the changes in 7456eba fix this issue for you? I've recently made changes to the logic that generates the path to the spritemap, I'm especially interested if the path in the generated styles file actually works in your setup.
You can do so by installing directly from master
:
$ npm install cascornelissen/svg-spritemap-webpack-plugin#master
thank you @cascornelissen it works now :) the contenthash is converted to the scss file (I posted a bad message that I just deleted because I saw that I had forgotten the filename options on my webpack configuration)
This has been released in version 3.8.2
🚀
Description Since I updated 'svg-spritemap-webpack-plugin' to version 3.8.1 The [contenthash] value is not converted on the generated scss file.
I did a minimal config from my project: https://github.com/Diono/test
and i cant build, i got this error:
it seems to build the .scss file before generating the sprite.svg file
Expected behavior generate a scss file referencing the path of the sprites with their hash according to their content
Actual behavior generated scss file does not replace template '[contenthash]' with its hash value
System information OS: Windows 10 Professional x64 20H2 node: v15.4.0 yarn: 1.22.4
Minimal reproduction webpack config: test.config.js
Additional context babelloader.config
cssloader.config
cssnano.config
minicssextractplugin.config
postcss.config
svgo.config