Make WordPress Core

Changeset 44283 for trunk


Ignore:
Timestamp:
12/18/2018 03:16:21 AM (5 years ago)
Author:
SergeyBiryukov
Message:

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

Props pento.
Merges [43933] to trunk.
Fixes #45201.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/tools/webpack/packages.js

    r44282 r44283  
    166166        flatten: true,
    167167        transform: ( content ) => {
    168             if ( config.mode === 'production' ) {
     168            if ( config.mode === 'production' && ! env.forceBuildTarget ) {
    169169                return postcss( [
    170170                    require( 'cssnano' )( {
Note: See TracChangeset for help on using the changeset viewer.