mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
chore(examples): use JS import in routify
This commit is contained in:
parent
003246dfe9
commit
281a925714
6 changed files with 1101 additions and 57 deletions
|
@ -6,6 +6,7 @@ import { terser } from "rollup-plugin-terser";
|
|||
import copy from "rollup-plugin-copy";
|
||||
import fs from "fs";
|
||||
import replace from "@rollup/plugin-replace";
|
||||
import postcss from "rollup-plugin-postcss";
|
||||
import { spassr } from "spassr";
|
||||
import { version } from "../package.json";
|
||||
|
||||
|
@ -63,6 +64,10 @@ function baseConfig(config, ctx) {
|
|||
flatten: false,
|
||||
}),
|
||||
replace({ "process.env.VERSION": JSON.stringify(version) }),
|
||||
postcss({
|
||||
extract: "bundle.css",
|
||||
extensions: [".css"],
|
||||
}),
|
||||
svelte(svelteWrapper(svelteConfig, ctx)),
|
||||
resolve({
|
||||
browser: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue