Skip to content

Comments

Build and Minify Frontend CSS#1022

Merged
n7studios merged 19 commits intomainfrom
build-minify-frontend-css
Feb 20, 2026
Merged

Build and Minify Frontend CSS#1022
n7studios merged 19 commits intomainfrom
build-minify-frontend-css

Conversation

@n7studios
Copy link
Contributor

@n7studios n7studios commented Feb 18, 2026

Summary

Consolidates the five separate frontend CSS files into a single compiled and minified frontend.css, as requested here.

Individual CSS files have been converted to SCSS partials under resources/frontend/scss/, and a new convertkit_enqueue_frontend_css() helper replaces all per-block wp_enqueue_style() calls so only one stylesheet is enqueued.

Adds new build tooling (sass, stylelint-scss, new npm/composer scripts).

Testing

Updated tests to check for frontend.css

Checklist

@n7studios n7studios self-assigned this Feb 18, 2026
@github-actions
Copy link

WordPress Playground

🚀 Your PR has been built and is ready for testing in WordPress Playground!

Click here to test your changes in WordPress Playground

@Kit Kit deleted a comment from github-actions bot Feb 18, 2026
@Kit Kit deleted a comment from github-actions bot Feb 18, 2026
@n7studios n7studios requested review from a team, ciccio-kit and noelherrick and removed request for a team February 18, 2026 12:44
@n7studios n7studios marked this pull request as ready for review February 18, 2026 12:46
@n7studios n7studios mentioned this pull request Feb 19, 2026
6 tasks
Copy link

@ciccio-kit ciccio-kit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but I'd like to understand more about a couple of the compromises that were made in this PR ✅

This uses @wordpress/prettier-config, enforcing the requirement that tabs, not spaces, be used: https://developer.wordpress.org/coding-standards/wordpress-coding-standards/css/. wp-scripts lint-style applies CSS coding standards, but misses the requirement of tabs, so prettier must also be used.
@n7studios n7studios merged commit 8f940c2 into main Feb 20, 2026
78 of 86 checks passed
@n7studios n7studios deleted the build-minify-frontend-css branch February 20, 2026 08:45
@github-actions
Copy link

WordPress Playground

🚀 Your PR has been built and is ready for testing in WordPress Playground!

Click here to test your changes in WordPress Playground

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants