-
Notifications
You must be signed in to change notification settings - Fork 31
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
Style/Script Defaults #150
Conversation
I have some clarifying questions posted above, but are not blocking in my mind. I agree with this RFC. I'll add that I think |
RFC call notes: 03-15-2022
|
I found a use case for this. In the last few days I've been experimenting with creating html email templates that populate and compile from a CMS (Sanity). For this use case all styles need to be inlined, I'd prefer to use I have some questions:
|
If there's no way to flag a |
@RafidMuhymin |
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.
Added one comment related to potentially removing is:scoped
, but not a blocker for me
Very happy to see how all this came together! It makes much more sense having styles and scripts handled in the same way, and defaulting to compiler/bundler magic makes sense since that seems to be the lion's share of real world use cases
I know that currently |
8bd399a
to
97a0416
Compare
Accepted during todays RFC call |
Summary
Astro is inconsist between
<style>
and<script>
default behavior. Currently,<style>
has opt-out processing, but<script>
does not. This RFC aims to settle on a good, consistent default for both<style>
and<script>
.TLDR;
<script hoist>
becomes the default for<script>
.is:inline
introduced for<script>
and<style>
.Links