gdborton / webpack-parallel-uglify-plugin

A faster uglifyjs plugin.
466 stars 34 forks source link

Remove tmp files that created by uglifier #55

Open JohannLai opened 6 years ago

JohannLai commented 6 years ago

hi @gdborton : webpack-parallel-uglify-plugin is a very useful and greateful plugin, it save a lot of my time. but recently, I found some problem.

I use webpack-parallel-uglify-plugin in MacOs, Linux and Win 10. None of these platforms deletes tmp files. In win 10, they generate in C:/user/username/AppData/Local/Temp, with many othes apps' tmp data.

In MacOs, they generate in /var/ + random string.

None of them were deleted after compress. So the folder to save the tmp files biger and biger.

I think is it possible to remove the afer we read them ?

Also, I think the tmp package of node doesn't work to delete the tmp files through setGracefulCleanup API.

mofiggHasSugar commented 4 years ago

英文写的很有特点