PJ-CM

Results 6 comments of PJ-CM

I get the same error as @rightaway ... What is the solution to apply, please?

Finally, that's how it's working fine: const{ CleanWebpackPlugin } = require("clean-webpack-plugin"); const path = require("path"); module.exports = { output: { path: path.resolve(__dirname, "dist"), }, plugins: [ new CleanWebpackPlugin({ cleanOnceBeforeBuildPatterns: [path.join(__dirname,...

Hi @evpaassen ... And how would it be an example of the code refered to "use the `clean-webpack-plugin` in the production build configuration."? The code I put isn't a good...

I think the issue or the question that @rightaway does is about the right configuration of clean-wbpack-plugin for Webpack 5 and how to avoid that mistake.

So, finally, with the [`output.clean`](https://webpack.js.org/configuration/output/#outputclean) option, there is no need to use clean-webpack-plugin, right?

That's the version I'm using ... Thank you @solimant . Nothing better than immediate responses.