From e0d6ce80ac8aedd6dda62738ae773d0488dc7e0e Mon Sep 17 00:00:00 2001 From: Arsh <69170106+lilnasy@users.noreply.github.com> Date: Tue, 23 May 2023 15:42:14 +0000 Subject: [PATCH 1/5] changeset --- .changeset/stupid-pumpkins-perform.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .changeset/stupid-pumpkins-perform.md diff --git a/.changeset/stupid-pumpkins-perform.md b/.changeset/stupid-pumpkins-perform.md new file mode 100644 index 000000000000..028373202ae3 --- /dev/null +++ b/.changeset/stupid-pumpkins-perform.md @@ -0,0 +1,24 @@ +--- +'astro': major +--- + +The Inline Stylesheets RFC is now stable! + +You can now control how Astro bundles your css with a configuration change: + +```ts +export default defineConfig({ + ... + build: { + inlineStylesheets: "auto" + } + ... +}) +``` + +The options include: +- `inlineStylesheets: "never"`: This is the behavior you are familiar with. Every stylesheet is external, and added to the page via a `` tag. Default. +- `inlineStylesheets: "auto"`: Small stylesheets are inlined into `