Skip to content

Commit

Permalink
fix(template-vite): correct vite config
Browse files Browse the repository at this point in the history
  • Loading branch information
caoxiemeihao committed Jan 22, 2024
1 parent 269e563 commit 3225183
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default defineConfig((env) => {
mode: env.mode,
base: './',
build: {
outDir: `renderer/${name}`,
outDir: `.vite/renderer/${name}`,
},
plugins: [pluginExposeRenderer(name.toUpperCase())],
clearScreen: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/template/vite/tmpl/vite.main.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig, mergeConfig } from 'vite';
import { configFn, external, pluginHotRestart } from './vite.base.config.mjs';
import { configFn, external, getDefineKeys, pluginHotRestart } from './vite.base.config.mjs';
import { name as mainWindowName } from './vite.renderer.config.mjs';

// https://vitejs.dev/config
Expand Down
2 changes: 1 addition & 1 deletion packages/template/vite/tmpl/vite.renderer.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default defineConfig((env) => {
mode: env.mode,
base: './',
build: {
outDir: 'renderer/main_window',
outDir: `.vite/renderer/${name}`,
},
plugins: [
pluginExposeRenderer(name),
Expand Down

0 comments on commit 3225183

Please sign in to comment.