Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): handle error for watch mode #1609

Merged
merged 2 commits into from Sep 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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