diff --git a/vite.config.js b/vite.config.js index ed0b453..d2d0553 100644 --- a/vite.config.js +++ b/vite.config.js @@ -4,11 +4,16 @@ import { defineConfig } from 'vite' import { execSync } from 'child_process' import { resolve, join } from 'path' + const COPY_SKIP = new Set(['.env', '.env.local', '.env.production']) + function copyFolderSync(src, dest) { mkdirSync(dest, { recursive: true }) const entries = readdirSync(src) for (const entry of entries) { + if (COPY_SKIP.has(entry)) { + continue + } const srcPath = join(src, entry) const destPath = join(dest, entry)