File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6464 . option ( '-m, --mode <mode>' , `[string] set env mode` )
6565 . option (
6666 '--force' ,
67- `[boolean] force the optimizer to ignore the cache and re-bundle`
67+ `[boolean] force the optimizer to ignore the cache and re-bundle`
6868 )
6969 . action ( async ( root : string , options : ServerOptions & GlobalCLIOptions ) => {
7070 // output structure is preserved even after bundling so require()
111111 `or specify minifier to use (default: terser)`
112112 )
113113 . option ( '--manifest' , `[boolean] emit build manifest json` )
114- . option ( '-m, --mode <mode>' , `[string] set env mode` )
114+ . option ( '-m, --mode <mode>' , `[string] set env mode` )
115115 . action ( async ( root : string , options : BuildOptions & GlobalCLIOptions ) => {
116116 const { build } = await import ( './build' )
117117 try {
134134 . command ( 'optimize [root]' )
135135 . option (
136136 '--force' ,
137- `[boolean] force the optimizer to ignore the cache and re-bundle`
137+ `[boolean] force the optimizer to ignore the cache and re-bundle`
138138 )
139139 . action (
140140 async ( root : string , options : { force ?: boolean } & GlobalCLIOptions ) => {
Original file line number Diff line number Diff line change @@ -407,7 +407,8 @@ export async function applyHtmlTransforms(
407407 const res = await hook ( html , ctx )
408408 if ( ! res ) {
409409 continue
410- } else if ( typeof res === 'string' ) {
410+ }
411+ if ( typeof res === 'string' ) {
411412 html = res
412413 } else {
413414 let tags
You can’t perform that action at this time.
0 commit comments