Skip to content

Commit

Permalink
build: apply optimizeCss plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Apr 8, 2024
1 parent 8ac0078 commit c194218
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import svelte from "@astrojs/svelte";
import { optimizeImports } from "carbon-preprocess-svelte";
import { optimizeCss, optimizeImports } from "carbon-preprocess-svelte";
import { defineConfig } from "astro/config";
import pkg from "./package.json" assert { type: "json" };

Expand All @@ -18,6 +18,7 @@ export default defineConfig({
prefetchAll: true,
},
vite: {
plugins: [optimizeCss()],
optimizeDeps: {
exclude: ["carbon-components-svelte"],
},
Expand Down
Binary file modified bun.lockb
Binary file not shown.

0 comments on commit c194218

Please sign in to comment.