I tried to implement a webpack config on a Wordpress theme. I want to add the CleanWebpackPlugin and made a correct install of it.
I read a tutorial and I wrote something like this on my webpack.config.js:
new CleanWebpackPlugin(['./js/build/*','./css/build/*']),
After I made my npm run build
I received this error:
clean-webpack-plugin only accepts an options object.
and it redirected me to the GitHub project. I read the documentation but didn't find how to solve my problem.
Can somebody help?