Skip to content

Commit

Permalink
chore: update code style (#1451)
Browse files Browse the repository at this point in the history
  • Loading branch information
CHOYSEN authored Jan 9, 2021
1 parent aa5463c commit 6d279d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/vite/src/node/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ cli
.option('-m, --mode <mode>', `[string] set env mode`)
.option(
'--force',
`[boolean] force the optimizer to ignore the cache and re-bundle`
`[boolean] force the optimizer to ignore the cache and re-bundle`
)
.action(async (root: string, options: ServerOptions & GlobalCLIOptions) => {
// output structure is preserved even after bundling so require()
Expand Down Expand Up @@ -111,7 +111,7 @@ cli
`or specify minifier to use (default: terser)`
)
.option('--manifest', `[boolean] emit build manifest json`)
.option('-m, --mode <mode>', `[string] set env mode`)
.option('-m, --mode <mode>', `[string] set env mode`)
.action(async (root: string, options: BuildOptions & GlobalCLIOptions) => {
const { build } = await import('./build')
try {
Expand All @@ -134,7 +134,7 @@ cli
.command('optimize [root]')
.option(
'--force',
`[boolean] force the optimizer to ignore the cache and re-bundle`
`[boolean] force the optimizer to ignore the cache and re-bundle`
)
.action(
async (root: string, options: { force?: boolean } & GlobalCLIOptions) => {
Expand Down
3 changes: 2 additions & 1 deletion packages/vite/src/node/plugins/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,8 @@ export async function applyHtmlTransforms(
const res = await hook(html, ctx)
if (!res) {
continue
} else if (typeof res === 'string') {
}
if (typeof res === 'string') {
html = res
} else {
let tags
Expand Down

0 comments on commit 6d279d3

Please sign in to comment.