This release includes changes needed for the latest version of carbon-preprocess-svelte
, which is a from-scratch rewrite of the optimizeImports
preprocessor and optimizeCss
plugin.
If using pre-compiled CSS from carbon-components-svelte
, the optimizeCss
plugin can greatly reduce the outputted CSS bundle by remove unused Carbon CSS selectors.
See examples for usage.
export default defineConfig({
plugins: [sveltekit(), optimizeCss()],
});
Optimized index-CU4gbKFa.css
- Before: 606.26 kB
+ After: 53.22 kB (-91.22%)
What's Changed
Full Changelog: v0.84.1...v0.85.0