Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tools: Add build-styles script #17

Draft
wants to merge 1 commit into
base: trunk
Choose a base branch
from
Draft

Conversation

ryelle
Copy link
Contributor

@ryelle ryelle commented Apr 18, 2022

This is the script used in wporg-news-2021, which builds SCSS to CSS.

Build the CSS for the theme. First run sass to compile down to plain CSS, then run PostCSS to apply autoprefixer. If the --no-rtl flag is passed, that's all. If not, another PostCSS process is run to apply rtlcss and autoprefixer to the Sass output, and save that to the style-rtl.css file.

I'm not sure if this is the best way to share this between projects, we don't actually have a templating script to use these files yet, but I wanted to get it somewhere for re-use — this would be used on projects that don't need to compile javascript (like basic themes).

@ryelle ryelle self-assigned this Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant