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(
8888 ssr,
8989 ssrEmitAssets : config . mpa ,
9090 // 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 ) ,
9892 outDir : ssr ? config . tempDir : config . outDir ,
9993 cssCodeSplit : false ,
10094 rollupOptions : {
Original file line number Diff line number Diff line change @@ -12,6 +12,14 @@ if (process.env.DEBUG) {
1212
1313const argv : any = minimist ( process . argv . slice ( 2 ) )
1414
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+
1523const logVersion = ( logger : Logger ) => {
1624 logger . info ( `\n ${ c . green ( `${ c . bold ( 'vitepress' ) } v${ version } ` ) } \n` , {
1725 clear : ! logger . hasWarned
You can’t perform that action at this time.
0 commit comments