From 80e3d4d3d0f7719d8eae5435bba3805503057511 Mon Sep 17 00:00:00 2001 From: Arsh <69170106+lilnasy@users.noreply.github.com> Date: Thu, 4 May 2023 00:19:06 +0530 Subject: [PATCH] feature: configuration for css inlining behavior (#6659) * feature(inline stylesheets): implement as experimental * test: rename css-inline -> css-import-as-inline * test(content collections): add de-duplication of css * test: add new suite for inlineStylesheets configuration * fix(inline stylesheets): did not act on propagated styles * hack(inline stylesheets testing): duplicate fixtures Content collections reuses build data across multiple fixture.builds, even though a configuration change may have changed it. Duplicating fixtures avoids usage of the stale cache. https://cdn.discordapp.com/attachments/1039830843440504872/1097795182340092024/Screenshot_87_colored.png * refactor(css plugin): reduce nesting * optimization(css rendering): merge +

\ No newline at end of file diff --git a/packages/astro/test/fixtures/content/src/components/LayoutProp.astro b/packages/astro/test/fixtures/content/src/components/LayoutProp.astro index df7493c3e0..a2954162a3 100644 --- a/packages/astro/test/fixtures/content/src/components/LayoutProp.astro +++ b/packages/astro/test/fixtures/content/src/components/LayoutProp.astro @@ -1,6 +1,6 @@ --- import { CollectionEntry, getCollection } from 'astro:content'; - +import H3 from './H3.astro' // Test for recursive `getCollection()` calls const blog = await getCollection('blog'); @@ -23,6 +23,7 @@ const {

{title}

+

H3 inserted in the layout