You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Styles broken when using inlineStyleThreshold! #14110
Hey, after a recent update I noticed that some styles set in component <style lang="postcss"> tags were not included in a build when using inlineStyleThreshold, although it works during dev❗
How this turns out in a build (notice the blue color missing) ❗:
How it should look and has worked for months now ✅:
Svelte Config
importnodeAdapterfrom"@sveltejs/adapter-node"import{vitePreprocess}from"@sveltejs/vite-plugin-svelte"constconfig={// Consult https://kit.svelte.dev/docs/integrations#preprocessors// for more information about preprocessorspreprocess: vitePreprocess(),kit: {adapter: nodeAdapter({out: "build-node",precompress: false,}),inlineStyleThreshold: 1024*1024,// 1MBalias: {$bindings: "../backend/target/bindings",$i18n: "src/i18n",},},}
changed the title [-]`inlineStyleThreshold` does to not include component `<style lang="postcss">`[/-][+]Styles broken when using `inlineStyleThreshold`![/+]on Aug 9, 2025
Activity
timephy commentedon Aug 5, 2025
I wanted to add that this also happens with "standard CSS rules"! Now only with Tailwinds
@apply.[-]`inlineStyleThreshold` does to not include component `<style lang="postcss">`[/-][+]Styles broken when using `inlineStyleThreshold`![/+]teemingc commentedon Aug 11, 2025
Please provide a reproduction in the form of a repository.
teemingc commentedon Aug 11, 2025
It might be better to continue the discussion in the duplicate issue