johnagan / clean-webpack-plugin

A webpack plugin to remove your build folder(s) before building

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

upgrading from 0.1.19 to 3.0.0 doubt

daniloab opened this issue · comments

Hi, Im already read the #106 with the upgrade information. My only doubt is:

Im using

CleanWebpackPlugin(['build'], { verbose: false }),

on 3.0.0 version I just need to use:

CleanWebpackPlugin(),

since verbose now is false by default?

And there is this comment:

All files inside webpack's output.path directory will be removed, but the directory itself will not be. If using webpack 4+'s default configuration, this means everything under <PROJECT_DIR>/dist/. Use cleanOnceBeforeBuildPatterns to override this behavior.

my path is build, but is the same? or I need to use cleanOnceBeforeBuildPatterns?