Closed cascornelissen closed 4 years ago
@sectsect, thanks for reporting the issue, it should be deleted automatically (unless
chunk.keep
is set totrue
), there's even a test for it which seems to be green for both Webpack 4 and 5 so I'll investigate manually.
@cascornelissen
I created a minimal project.
(webpack: 5.3.2
/ svg-spritemap-webpack-plugin: 3.6.0
)
https://github.com/sectsect/svg-spritemap-webpack-plugin-test
npm run build
dist/assets/js
$ ls src/assets/js
hello.js
$ ls dist/assets/js
hello.js spritemap.js
$ cat dist/assets/js/spritemap.js
(self.webpackChunkhello=self.webpackChunkhello||[]).push([[355],{256:function(){}}]);
This should be fixed in 3.6.1
which is now available under the next
dist-tag on NPM.
$ npm install svg-spritemap-webpack-plugin@next
Please test this release out using both Webpack 4 and 5 if possible and report any problems.
@cascornelissen
v3.6.0 create
spritemap.js
file. Do you have option to delete this file?Related? #17
Originally posted by @sectsect in https://github.com/cascornelissen/svg-spritemap-webpack-plugin/issues/108#issuecomment-717617447