From ba6691fea159757bda1dcfa7c37f050b6f7f1917 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 18 Dec 2018 03:16:21 +0000 Subject: [PATCH] Build Tools: Don't minimise CSS in the unminimised files. Props pento. Merges [43933] to trunk. Fixes #45201. git-svn-id: https://develop.svn.wordpress.org/trunk@44283 602fd350-edb4-49c9-b593-d223f7449a82 --- tools/webpack/packages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/webpack/packages.js b/tools/webpack/packages.js index d2ab0d5e51..c096b96aa0 100644 --- a/tools/webpack/packages.js +++ b/tools/webpack/packages.js @@ -165,7 +165,7 @@ module.exports = function( env = { environment: 'production', watch: false, forc to: join( baseDir, `${ buildTarget }/css/dist/${ packageName }/` ), flatten: true, transform: ( content ) => { - if ( config.mode === 'production' ) { + if ( config.mode === 'production' && ! env.forceBuildTarget ) { return postcss( [ require( 'cssnano' )( { preset: 'default',