From 6e205d46fee79323cbdc8d82b814563d385b86a0 Mon Sep 17 00:00:00 2001 From: KUN1007 Date: Wed, 25 Oct 2023 00:33:26 +0800 Subject: [PATCH] mod: env --- .gitignore | 3 +++ vite.config.ts | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index 41f66cfe..14bdff20 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,6 @@ kun-ssr # rollup-plugin-visualizer stats.html + +# .env.production +.env.production diff --git a/vite.config.ts b/vite.config.ts index e1535b3c..dcb289da 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -16,6 +16,10 @@ export default defineConfig({ esbuild: { drop: ['console', 'debugger'], }, + build: { + // Dist dir name + assetsDir: 'kun', + }, server: { host: '127.0.0.1', port: 1007 }, // Suppress i18n warnings define: {