#64909 closed defect (bug) (fixed)
`assets/script-*-packages.min.php` files are not minified
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 7.0 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Build/Test Tools | Keywords: | has-patch |
| Focuses: | Cc: |
Description
Follow up to #64393.
The build script creates four files in the wp-includes/assets directory:
script-loader-packages.phpscript-loader-packages.min.phpscript-modules-packages.phpscript-modules-packages.min.php
Despite one version of the file being named .min.php, both files are unminified. The .min files should either be minified or removed.
Change History (4)
This ticket was mentioned in PR #11314 on WordPress/wordpress-develop by @desrosj.
7 weeks ago
#1
Note: See
TracTickets for help on using
tickets.
This removes the
script-loader-packages.min.phpandscript-modules-packages.min.phpfiles.They were not being minified and an unminified vesion of the file is more human readable. The unminified file is roughly 10KB larger, which seems like a reasonable tradeoff.
Trac ticket: Core-64909.
## Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Sonnet 4.6
Used for: A detailed prompt was given to Claude to work through the changes required. The results were reviewed by me and adjustments were made.
-->