new SVGSpritemapPlugin({
src: path.join(config.paths.assets, “/images/svg/*.svg”),
filename: images/svg/spritemap.svg,
}),
The spritemap is generated while using yarn start, but when using yarn build the sprite map is empty. It looks like it can’t find the separate SVG files. Any idea how to fix this?
It looks like it has something to do with the ImageminPlugin. Removing it entirely fixes the spritemap, but of course skips the minification of the other images. Does the plugin move or copies the images or something?