Build - how to remove console.log during build?

Hi guys!

I have trouble instructing webpack to remove console lines when minimizing. In webpack v3 it works fine, however in v5 that is installed together with fv7-v6, the settings below does not work. Does anyone know how to do this in webpack version 5?

settings for webpack v3

minimizer: [new TerserPlugin({
sourceMap: true,
terserOptions: {
compress: {
drop_console: true,