Closed xavianaxw closed 3 years ago
This looks like the same issue as https://github.com/cascornelissen/svg-spritemap-webpack-plugin/issues/157 and https://github.com/cascornelissen/svg-spritemap-webpack-plugin/issues/157#issuecomment-808131853 should provide some additional details with a possible workaround.
I never heard back from the reporter of #157 so I'm not sure what the status/best way forward would be.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Description
Greetings! Running into a little bit of a trouble with the spritemap plugin with manifest plugin not working too well together. tldr; with a configuration like so:
It will output
img/icons.svg/ in the
manifest.jsonfile on first init but when I change any files in the folder we are passing through to the plugin, it will change from
img/icons.svgto
spritemap.svg` instead thus breaking the HMR setup I have with craft-twigpack.then after rebuild with
watch
modeExpected behavior Output should stay as
img/icons.svg
and notspritemap.svg
in manifest fileActual behavior Output is
spritemap.svg
System information
node
v12.13.0Minimal reproduction Currently don't have a repo currently but here are my
package.json
andwebpack
configpackage.json
webpack.config.js
webpack.dev.js
Steps to reproduce
npm install
oryarn install
src/icons
and add some.svg
files in them. Might need some other files likejs/app.js
as wellnpm run dev
oryarn run dev
webpack-dev-server
.svg
filewebpack-dev-server
URL again and you can see the difference.