-
-
Notifications
You must be signed in to change notification settings - Fork 405
Deprecate broccoli CSS pipeline for vite app css #1148
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
base: main
Are you sure you want to change the base?
Changes from 4 commits
87871f9
4ce0d91
713d55e
4b0b984
d4de14c
653a026
2d49d65
533d567
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| --- | ||
| stage: accepted | ||
| start-date: 2025-10-11T16:34:13.823Z | ||
| release-date: # In format YYYY-MM-DDT00:00:00.000Z | ||
| release-versions: | ||
| teams: # delete teams that aren't relevant | ||
| - cli | ||
| - framework | ||
| prs: | ||
| accepted: https://github.com/emberjs/rfcs/pull/1148 | ||
| project-link: | ||
| suite: | ||
| --- | ||
|
|
||
| <!--- | ||
| Directions for above: | ||
|
|
||
| stage: Leave as is | ||
| start-date: Fill in with today's date, 2032-12-01T00:00:00.000Z | ||
| release-date: Leave as is | ||
| release-versions: Leave as is | ||
| teams: Include only the [team(s)](README.md#relevant-teams) for which this RFC applies | ||
| prs: | ||
| accepted: Fill this in with the URL for the Proposal RFC PR | ||
| project-link: Leave as is | ||
| suite: Leave as is | ||
| --> | ||
|
|
||
| <!-- Replace "RFC title" with the title of your RFC --> | ||
|
|
||
| # Deprecate broccoli CSS pipeline | ||
|
|
||
| ## Summary | ||
|
|
||
| With vite becoming default we should use it's CSS pipeline as the default experience. We can advise in a deprecation guide that `/@embroider/virtual/app.css` exists if they still need to use it but new apps should be using the vite CSS pipeline by default. | ||
|
|
||
| ## Motivation | ||
|
|
||
| No longer need to maintain ember specific CSS tooling like ember-cli-sass ember-css-modules etc. Vite comes with sane defaults to use postcss, sass, less, stylus etc out of the box. | ||
| We also wont have to keep explaining to people how to opt in to vite's CSs pipeline. | ||
|
|
||
| ## Detailed design | ||
|
|
||
| Replace the CSS import in our app blueprint to the file on disk. | ||
|
|
||
| ```html | ||
| <!-- replace this --> | ||
| <link integrity="" rel="stylesheet" href="/@embroider/virtual/app.css"> | ||
|
|
||
| <!-- with this --> | ||
| <link integrity="" rel="stylesheet" href="/app/styles/app.css"> | ||
evoactivity marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ``` | ||
|
|
||
| ## How we teach this | ||
|
|
||
| As part of a deprecation guide explain how to keep using the broccoli pipeline whilst they migrate (using `/@embroider/virtual/app.css`) | ||
|
||
|
|
||
| ## Drawbacks | ||
|
|
||
| None that I can think of. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can think potential drawbacks:
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are so few addon css things tho. I haven't encountered any in years Each compan feature may have a different migration guide... So... Maybe?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
At the very least I think this one should be done sooner rather than later, this topic keeps coming up in the discord, especially when people are trying to use tailwind. It's the one thing I'm helping people with repeatedly.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm just pointing out things that should be discussed in the 'Drawbacks' section |
||
|
|
||
| ## Alternatives | ||
|
|
||
| Add a guide to the docs on how to opt in to vite's CSS pipeline. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be clear that we'd only deprecate it for vite-based projects. Classic build, while not default, is still supported.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added wording that this only affects vite projects and not classic build projects.