I am upgrading webpack
4 to 5. In package.json I had:
start": "webpack-dev-server --config config/webpack.js --mode development --cssExtract --uiTest --progress --color --port 2000 --open"
after an upgrade I got:
[webpack-cli] Error: Unknown option '--cssExtract'
--cssExtract
is custom flag. I use it in the config file:
cssExtract
? new MiniCssExtractPlugin({
filename: '[contenthash].css',
})
: false,