Skip to content

Commit 28646ea

Browse files
committed
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. git-svn-id: https://develop.svn.wordpress.org/trunk@62073 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 7ac6151 commit 28646ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/gutenberg/copy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ async function main() {
595595

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 );
601601
// Replace 'index.' with 'package-name.'.

0 commit comments

Comments
 (0)