webpack-clean-obsolete-chunks icon indicating copy to clipboard operation
webpack-clean-obsolete-chunks copied to clipboard

Can this plugin be extended to also delete removed entries?

Open forabi opened this issue 6 years ago • 4 comments

My use case involves building multiple entries to be able to run Jest tests in parallel. I'm using wildcards-entry-webpack-plugin to monitor any newly added test files in watch mode and compile them so that Jest can pick them up. This works as expected, but the problem is that if I remove a test file (an entry file), it does not get removed from the destination directory and Jest will still try to run these tests and fail. Can this plugin be extended to reflect removal of entry files as well?

forabi avatar Feb 10 '18 14:02 forabi

Hi @forabi! OK, I'll look at it when I have time (probably within next week)

GProst avatar Feb 10 '18 14:02 GProst

Awesome! Thanks! Is there anything I can help with? I don't know a lot about Webpack's APIs but I might be able to get something to work if I could just find the documentation for compliation in order to access the entries.

forabi avatar Feb 10 '18 15:02 forabi

Thank you, you could create PR with this implementation if you wanted to. But it's not necessary, I'll look at it myself anyway.

GProst avatar Feb 10 '18 15:02 GProst

Any updates on this? Great plugin btw!

meglio avatar Nov 16 '18 02:11 meglio