diff --git a/package.json b/package.json index e4461c3e3..1abf2eb4d 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "module": "build/ui-kit.mjs", "types": "index.d.ts", "scripts": { - "prepare": "node scripts/prepare", + "prepare": "node scripts/prepare && vite build", "start": "npm run storybook", "dev": "npm run storybook", "storybook": "storybook dev -p 6006 --no-open", diff --git a/vite.config.js b/vite.config.js index f9e4fd54a..cde8e2afe 100644 --- a/vite.config.js +++ b/vite.config.js @@ -8,6 +8,7 @@ const devDependencies = Object.keys(pkg.devDependencies); export default defineConfig({ build: { outDir: "build", + copyPublicDir: false, lib: { entry: path.resolve(__dirname, "src/index.js"),