mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 17:51:54 +00:00
feat(cli): speedup dev command
This commit is contained in:
@@ -32,10 +32,14 @@ function compileTempDir(dir: string): Promise<unknown> {
|
||||
const filePath = join(dir, filename);
|
||||
|
||||
if (isDir(filePath)) {
|
||||
if (filePath.includes('/test') || filePath.includes('/demo')) {
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
return compileTempDir(filePath);
|
||||
}
|
||||
|
||||
if (filename.indexOf('index') !== -1) {
|
||||
if (filename.includes('index')) {
|
||||
if (isSfc(filePath)) {
|
||||
return compileSfc(filePath, { skipStyle: true });
|
||||
}
|
||||
|
Reference in New Issue
Block a user