diff --git a/webpack.config.js b/webpack.config.js index afd5c17c28c937..acf041927ea485 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -177,7 +177,11 @@ const config = { if ( config.mode === 'production' ) { return postcss( [ require( 'cssnano' )( { - preset: 'default', + preset: [ 'default', { + discardComments: { + removeAll: true, + }, + } ], } ), ] ) .process( content, { from: 'src/app.css', to: 'dest/app.css' } )