File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -88,13 +88,7 @@ export async function bundle(
88
88
ssr,
89
89
ssrEmitAssets : config . mpa ,
90
90
// minify with esbuild in MPA mode (for CSS)
91
- minify : ssr
92
- ? config . mpa
93
- ? 'esbuild'
94
- : false
95
- : typeof options . minify === 'boolean'
96
- ? options . minify
97
- : ! process . env . DEBUG ,
91
+ minify : ssr ? ! ! config . mpa : ( options . minify ?? ! process . env . DEBUG ) ,
98
92
outDir : ssr ? config . tempDir : config . outDir ,
99
93
cssCodeSplit : false ,
100
94
rollupOptions : {
Original file line number Diff line number Diff line change @@ -12,6 +12,14 @@ if (process.env.DEBUG) {
12
12
13
13
const argv : any = minimist ( process . argv . slice ( 2 ) )
14
14
15
+ Object . keys ( argv ) . forEach ( ( key ) => {
16
+ if ( argv [ key ] === 'true' ) {
17
+ argv [ key ] = true
18
+ } else if ( argv [ key ] === 'false' ) {
19
+ argv [ key ] = false
20
+ }
21
+ } )
22
+
15
23
const logVersion = ( logger : Logger ) => {
16
24
logger . info ( `\n ${ c . green ( `${ c . bold ( 'vitepress' ) } v${ version } ` ) } \n` , {
17
25
clear : ! logger . hasWarned
You can’t perform that action at this time.
0 commit comments