mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-19 03:49:34 +00:00
chore(examples): update example set-ups
This commit is contained in:
parent
d24c60856f
commit
49c5142111
97 changed files with 6670 additions and 15715 deletions
10
examples/vite/vite.config.js
Normal file
10
examples/vite/vite.config.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
||||
import { defineConfig } from "vite";
|
||||
import { optimizeImports } from "carbon-preprocess-svelte";
|
||||
|
||||
export default defineConfig(({ mode }) => {
|
||||
return {
|
||||
plugins: [svelte({ preprocess: [optimizeImports()] })],
|
||||
build: { minify: mode === "production" },
|
||||
};
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue