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

Remove the PostCSS process #909

Merged
merged 2 commits into from
Feb 2, 2024
Merged

Conversation

BlueCutOfficial
Copy link
Contributor

@BlueCutOfficial BlueCutOfficial commented Feb 1, 2024

This PR is a step of the conversion to v2 addon.

  • It removes the PostCSS process entirely to ease future conversion.
  • It reworks the related docs to turn the deprecation into a migration guide.

Why?
Build-time features no longer stand in Embroider world, because the v2 addons are static. To provide a processed CSS, we need to provide it statically, and this is not what we want: this process generated static fallbacks for CSS variables, but most browsers have been supporting CSS variables for several years. Also, the v1 addon offered the possibility to import the uncompiled style, so providing processed styles would kind of break this. The approach we chose is to remove this feature from the addon completely and document how to re-implement it on consumer app side.

@BlueCutOfficial BlueCutOfficial force-pushed the step2-remove-post-css-process branch from a1e9184 to 7ec4f5b Compare February 2, 2024 13:51
@BlueCutOfficial BlueCutOfficial marked this pull request as ready for review February 2, 2024 13:53
@BlueCutOfficial BlueCutOfficial force-pushed the step2-remove-post-css-process branch from 7ec4f5b to 75b0882 Compare February 2, 2024 13:57
MIGRATION.md Show resolved Hide resolved
Copy link
Member

@nickschot nickschot left a comment

Choose a reason for hiding this comment

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

Looks good 👍 , placed 1 comment related to excludeCSS, but non-blocking.

@BlueCutOfficial BlueCutOfficial merged commit 39342f2 into main Feb 2, 2024
14 checks passed
@BlueCutOfficial BlueCutOfficial deleted the step2-remove-post-css-process branch February 2, 2024 15:15
@github-actions github-actions bot mentioned this pull request Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants