CleanWebpackPlugin does not work
I use vue-cli-plugin-electron-builder in my project, but when I run npm run electron:build , the files still exist in the 'dist_electron' directory. So I installed the clean-webpack-plugin. But when I run the script again, it still doesn't work. Then I run npm run build and it works well. What should I do?
This is the screenshot

I think the dist_electron contains some files that used in development
if you need delete some old files, you can write code to delete
@klren0312 Ok , got it . Thanks , maybe I need to write a plugin to delete some useless files automatically or delete these files manually .
You can use clean-webpack-plugin, but you will need to configure it in vue.config.js. Or use rimraf, which you also need to configure. I suggest a preelectron:build script. But this is not related to this project. So closing this issue.