Repository navigation
build(Dev Server): Performance improvements - #2392
Conversation
|
Coverage Impact Unable to calculate total coverage change because base branch coverage was not found. Commit 85364a0 · 🚦 See full report on Qlty Cloud »🛟 Help
|
breity
left a comment
There was a problem hiding this comment.
Looks good. 👍
Yes, I've been changing @use "tailwindcss" to @reference "tailwindcss" in other places. Looks like we just missed the instances here.
I agree we don't need optimization: true for dev.
|
Average cold start improvement: ~25.8% |

Changes
@use "tailwindcss"to@reference "tailwindcss"Reason: Each full import makes Tailwind scan the whole project and produce a complete stylesheet, including its global reset, inside that one component’s CSS. Tailwind also treats every template file as an input, so editing almost any .html file can rebuild those two large stylesheets. Changing both to @reference "tailwindcss" should speed up rebuilds. It also stops Tailwind’s global reset from being copied into those components’ CSS.
Test/Verify
optimization: truein PR feat(Grade by step): Display component summary views #2090, but I don't think we needed to. It was probably committed by mistake.