mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
Update examples, update README documentation (#772)
* chore(examples): update example set-ups * chore: update readme docs
This commit is contained in:
parent
d24c60856f
commit
0315a17d4a
97 changed files with 6778 additions and 15821 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