-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Switch build.inlineStylesheets
default to auto
#8118
Conversation
🦋 Changeset detectedLatest commit: b37af2c The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Ready for review |
Note from docs: there will also need to be a corresponding update to the configuration-reference page via |
Forgot about it, thanks a lot for the reminder! |
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.
thanks!
@@ -847,7 +847,7 @@ export interface AstroUserConfig { | |||
* ```js | |||
* { | |||
* build: { | |||
* inlineStylesheets: `auto`, | |||
* inlineStylesheets: `never`, |
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.
Heads up that I also updated here, since we typically show a setting that would need to be set, and you wouldn't need to set auto
specifically now that it's the default.
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.
Saving me again!
🙏
|
I'm not sure about either of these because I'm not familiar with the implications of merging into next. Would the changeset become part of 3.0 release notes? Is there a |
I would probably not approve this until the docs are updated. I can grab those tomorrow. |
'astro': patch | ||
--- | ||
|
||
Astro is smarter about CSS! Small stylesheets are now inlined by default, and no longer incur the cost of additional requests to your server. Your visitors will have to wait less before they see your pages, especially those in remote locations or in a subway. |
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.
lol How can I not approve this?
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.
Docs is happy! Have also reviewed the corresponding docs PR, so we're all in good shape! 🙌
Changes
Testing
inlineStylesheets: never
for tests that were written when it was the defaultDocs
The
Bundle control
section will need to be updated.PR: withastro/docs#4253 (live, updated)