mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 12:58:25 +01:00
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
This commit is contained in:
parent
edbb865da0
commit
b5f10f4d78
@ -165,7 +165,7 @@ module.exports = function( env = { environment: 'production', watch: false, forc
|
|||||||
to: join( baseDir, `${ buildTarget }/css/dist/${ packageName }/` ),
|
to: join( baseDir, `${ buildTarget }/css/dist/${ packageName }/` ),
|
||||||
flatten: true,
|
flatten: true,
|
||||||
transform: ( content ) => {
|
transform: ( content ) => {
|
||||||
if ( config.mode === 'production' ) {
|
if ( config.mode === 'production' && ! env.forceBuildTarget ) {
|
||||||
return postcss( [
|
return postcss( [
|
||||||
require( 'cssnano' )( {
|
require( 'cssnano' )( {
|
||||||
preset: 'default',
|
preset: 'default',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user