Closed Legends closed 5 years ago
I have the same problem, it doesn't work in webpack4.
I totally forgot that I have opened this issue, but I don't have this issue anymore... don't ask me ...
I'm facing the same problem. Path is correct and in verbose mode it says it deleted the folder, but it's not.
same here :(
Error: ENOTEMPTY: directory not empty, rmdir '/Users/nomad/Documents/sun/front-end/build'
at Object.fs.rmdirSync (fs.js:853:18)
at rmkidsSync (/Users/nomad/Documents/sun/front-end/node_modules/rimraf/rimraf.js:356:25)
at rmdirSync (/Users/nomad/Documents/sun/front-end/node_modules/rimraf/rimraf.js:334:7)
at Function.rimrafSync [as sync] (/Users/nomad/Documents/sun/front-end/node_modules/rimraf/rimraf.js:304:9)
at /Users/nomad/Documents/sun/front-end/node_modules/clean-webpack-plugin/index.js:166:16
at Array.forEach (
Closed in v2.0.0
via #99. See johnagan/clean-webpack-plugin#usage. Please open a new issue if you continue to have problems.
I am using webpack4 and clean-webpack-plugin v0.1.19 Same configuration as in my webpack3 project. It works in webpack3 project but not anymore in v4.
rimraf.js