mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-09-02 20:55:07 +08:00
fix: emptyOutDir = true
This commit is contained in:
@@ -6,13 +6,14 @@ export default defineConfig({
|
||||
root: __dirname,
|
||||
build: {
|
||||
outDir: '../../dist/main',
|
||||
emptyOutDir: true,
|
||||
minify: process.env./* from mode option */NODE_ENV === 'production',
|
||||
sourcemap: true,
|
||||
lib: {
|
||||
entry: 'index.ts',
|
||||
formats: ['cjs'],
|
||||
fileName: () => '[name].cjs',
|
||||
},
|
||||
minify: process.env./* from mode option */NODE_ENV === 'production',
|
||||
sourcemap: true,
|
||||
rollupOptions: {
|
||||
external: [
|
||||
'electron',
|
||||
|
Reference in New Issue
Block a user