Skip to content
Permalink
Browse files

Build Tools: Don't minimise CSS in the unminimised files.

See #45201.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43933 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
pento committed Nov 22, 2018
1 parent edbb865 commit b5f10f4d7811a7911927392a5c4ad76d7a48d7ab
Showing with 1 addition and 1 deletion.
  1. +1 −1 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',

0 comments on commit b5f10f4

Please sign in to comment.
You can’t perform that action at this time.