[wp-trac] [WordPress Trac] #63012: Bundled themes: Stylesheets should be minified
WordPress Trac
noreply at wordpress.org
Tue Feb 25 05:54:44 UTC 2025
#63012: Bundled themes: Stylesheets should be minified
---------------------------+-------------------------------
Reporter: westonruter | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.9
Component: Bundled Theme | Version:
Severity: normal | Resolution:
Keywords: | Focuses: css, performance
---------------------------+-------------------------------
Comment (by westonruter):
@poena This is about using the same build process as core already has for
minifying CSS files, but just extending it to bundled themes where
currently core is just minifying CSS in `wp-admin` and `wp-includes`. By
using a development version of WordPress, do you mean running from `src`
without doing a build? This would still be supported since with
`SCRIPT_DEBUG` the non-minified files would be used, thus not
necessitating doing a build (via core's existing `grunt build`).
The minified CSS files would be built with WordPress, and the static files
would be shipped with the themes. There would not be any dynamic
minification process, so there's no back-compat issue.
You can see an example of the scope of changes, specifically for Twenty
Twenty-Two and Twenty Twenty-Five in this [https://github.com/WordPress
/wordpress-develop/pull/8396 PR] for #63007. The scope of changes for that
ticket is primarily about being able to inline the small `style.css` files
(the addition of the calls to `wp_style_add_data()` in the PR), but
minification is included there because there is a limit to the amount of
CSS that can be inlined.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63012#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list