0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00
astro/.changeset
Arsh 80e3d4d3d0
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 <style> tags

Chrome, but not Safari or Firefox, is slower to match rules when they are split across multiple files or style tags.
https://nolanlawson.com/2022/06/22/style-scoping-versus-shadow-dom-which-is-fastest/

Having the abiility to inline stylesheets opens us up to this optimization.
Ideally, it would extend to propagated styles, but that ended up being a rabbit hole.

* typedocs(inlineStylesheets config): ensure consistency

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* chore(build internals): update comment

* correct minor mistake in test

* test(inline stylesheets): unique package names for duplicate fixtures

* refactor(css build plugin): maps -> records

* refactor(css build plugin): remove use of spread operator

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-05-03 14:49:06 -04:00
..
chatty-dolls-visit.md Sitemap: support SSR routes (#6534) 2023-05-03 12:19:45 -04:00
config.json Fix changeset publish (#6923) 2023-04-27 22:55:48 +08:00
friendly-fishes-sing.md feature: configuration for css inlining behavior (#6659) 2023-05-03 14:49:06 -04:00
green-cups-hammer.md Implement scopedStyleStrategy (#6771) 2023-05-03 11:16:03 -04:00
nine-geckos-act.md Support <Code inline /> to output inline code (#6959) 2023-05-03 12:15:00 -04:00
pretty-bears-deliver.md feat(astro): experimental middleware (#6721) 2023-05-03 17:40:47 +01:00
README.md Migrate to yarn monorepo (#157) 2021-04-30 16:33:35 -05:00
smooth-cows-jog.md Upgrade shiki to v0.14.1 (#6932) 2023-05-03 11:07:57 -04:00
twelve-feet-switch.md Ensure multiple cookies set in dev result in multiple set-cookie headers (#6973) 2023-05-03 11:26:02 -04:00

Changesets

Hello and welcome! This folder has been automatically generated by @changesets/cli, a build tool that works with multi-package repos, or single-package repos to help you version and publish your code. You can find the full documentation for it in our repository

We have a quick list of common questions to get you started engaging with this project in our documentation