mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-19 11:56:36 +08:00
support minify on build phase
This commit is contained in:
parent
9456f5c270
commit
1c0d0a50b7
@ -11,8 +11,7 @@ export default defineConfig({
|
|||||||
entry: 'index.ts',
|
entry: 'index.ts',
|
||||||
formats: ['cjs'],
|
formats: ['cjs'],
|
||||||
},
|
},
|
||||||
sourcemap: false,
|
minify: process.env.NODE_ENV === 'production',
|
||||||
minify: false,
|
|
||||||
emptyOutDir: true,
|
emptyOutDir: true,
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
external: [
|
external: [
|
||||||
|
@ -11,8 +11,7 @@ export default defineConfig({
|
|||||||
entry: 'index.ts',
|
entry: 'index.ts',
|
||||||
formats: ['cjs'],
|
formats: ['cjs'],
|
||||||
},
|
},
|
||||||
sourcemap: false,
|
minify: process.env.NODE_ENV === 'production',
|
||||||
minify: false,
|
|
||||||
emptyOutDir: true,
|
emptyOutDir: true,
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
external: [
|
external: [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user