Skip to content

Commit

Permalink
fix(cli): handle error for watch mode (#1609)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
  • Loading branch information
sudongyuer and antfu committed Sep 18, 2022
1 parent 9ab774b commit 2cdf922
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/index.ts
Expand Up @@ -99,7 +99,7 @@ export async function build(_options: CliOptions) {

await generate(options)

startWatcher()
startWatcher().catch(handleError)

async function generate(options: ResolvedCliOptions) {
const outFile = resolve(options.cwd || process.cwd(), options.outFile ?? 'uno.css')
Expand Down
2 changes: 1 addition & 1 deletion packages/vite/src/types.ts
Expand Up @@ -30,7 +30,7 @@ export interface VitePluginConfig<Theme extends {} = {}> extends UserConfig<Them
transformCSS?: boolean | 'pre' | 'post'
/**
*
* make the generate css processed by postcss(https://vitejs.dev/guide/features.html#postcss)
* make the generated css processed by postcss (https://vitejs.dev/guide/features.html#postcss)
* @default true
*/
postcss?: boolean
Expand Down

0 comments on commit 2cdf922

Please sign in to comment.