WhenWhatByLicenseComment
Oct 26, 2026, 9:23:15 AM
4w ago
AnswermarcuslinuxCC BY-SA 4.0Start by removing runtime string concatenation for class names: map dynamic values to explicit Tailwind utilities or use Svelte's class: directives so class names are present at build time. If you must keep patterns, add a tight safelist in tailwind.config.js that matches only the variants you need (avoid overly broad regexes). Rebuild and verify by grepping the generated CSS for one of the expected classes or loading the preview build. Roll back the safelist when you convert components to static-class mappings.
Oct 26, 2026, 9:23:15 AM
4w ago
CreatedelincodeCC BY-SA 4.0Tailwind JIT utilities missing in SvelteKit production build when class names use runtime template literals