Make WordPress Core

Changeset 62073


Ignore:
Timestamp:
03/20/2026 01:04:42 PM (8 days ago)
Author:
desrosj
Message:

Build/Test Tools: Skip copying *.min.asset.php files for scripts.

The index.min.asset.php file for each script bundled through the built asset from the gutenberg repository contains the dependencies and version hash for each script.

These values are merged into the script-loader-packages.php file during a build, so the original PHP files are not required.

Props peterwilsoncc, desrosj.
Fixes #64393.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/gutenberg/copy.js

    r62072 r62073  
    596596                    for ( const file of packageFiles ) {
    597597                        if (
    598                             /^index\.(js|min\.js|min\.asset\.php)$/.test( file )
     598                            /^index\.(js|min\.js)$/.test( file )
    599599                        ) {
    600600                            const srcFile = path.join( src, file );
Note: See TracChangeset for help on using the changeset viewer.