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

Use single compileStyles Sass helper function #2912

Merged
merged 1 commit into from
Oct 18, 2022

Conversation

colinrotherham
Copy link
Contributor

This PR is a follow up to #2881

Knowing we now have a postcss.config.js file that handles:

  1. Adding prefixes (via Autoprefixer)
  2. Adding pseudo-class companions for stylesheets starting app-*
  3. Running plugins for IE8 compatibility (removing media queries etc)
  4. Minifying stylesheets ending *.min.css

We can now combine the various task functions compileOldIE(), compileLegacy(), compileLegacyIE(), compileFullPageStyles() into a single compileStyles()

@colinrotherham
Copy link
Contributor Author

Also comes under "does too much" so is also linked with #2243

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-2912 October 17, 2022 12:47 Inactive
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-2912 October 17, 2022 12:57 Inactive
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-2912 October 17, 2022 13:26 Inactive
@colinrotherham colinrotherham force-pushed the postcss-config branch 2 times, most recently from db0c833 to de8ec57 Compare October 17, 2022 18:09
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-2912 October 17, 2022 18:14 Inactive
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-2912 October 18, 2022 11:46 Inactive
Base automatically changed from postcss-config to main October 18, 2022 14:16
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-2912 October 18, 2022 14:20 Inactive
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-2912 October 18, 2022 14:21 Inactive
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-2912 October 18, 2022 14:42 Inactive
@colinrotherham colinrotherham merged commit 4389d71 into main Oct 18, 2022
@colinrotherham colinrotherham deleted the postcss-config-task branch October 18, 2022 14:54
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.

3 participants