Make WordPress Core

Changeset 47471


Ignore:
Timestamp:
03/18/2020 04:48:19 AM (5 years ago)
Author:
azaozz
Message:

Build Tools: Use the new combinedOutputFile setting for the updated DependencyExtractionWebpackPlugin and output script-loader-packages.php directly in wp-includes/assets/.

Props gziolo, azaozz.
See: #48154.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r47407 r47471  
    117117            ],
    118118            'webpack-assets': [
    119                 WORKING_DIR + 'wp-includes/js/dist/assets.php'
     119                WORKING_DIR + 'wp-includes/assets/'
    120120            ],
    121121            dynamic: {
     
    354354                    }
    355355                ]
    356             },
    357             'webpack-assets': {
    358                 src: WORKING_DIR + 'wp-includes/js/dist/assets.php',
    359                 dest: WORKING_DIR + 'wp-includes/assets/script-loader-packages.php'
    360356            },
    361357            version: {
     
    13671363
    13681364    grunt.registerTask( 'build:webpack', [
     1365        'clean:webpack-assets',
    13691366        'webpack:prod',
    13701367        'webpack:dev',
    1371         'copy:webpack-assets',
    1372         'clean:webpack-assets',
    13731368    ] );
    13741369
  • trunk/tools/webpack/packages.js

    r47416 r47471  
    248248                injectPolyfill: true,
    249249                combineAssets: true,
     250                combinedOutputFile: '../../assets/script-loader-packages.php',
    250251            } ),
    251252            new CopyWebpackPlugin(
Note: See TracChangeset for help on using the changeset viewer.