mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 10:07:07 +00:00
feat(cli): add convention static directory (#8929)
* fix: #8890 sfc compile error * chore(vant-cli): add convention static directory * chore(vant-cli): another way to deal with static resources
This commit is contained in:
@@ -19,6 +19,7 @@ import { genVeturConfig } from '../compiler/gen-vetur-config';
|
||||
import {
|
||||
isDir,
|
||||
isSfc,
|
||||
isAsset,
|
||||
isStyle,
|
||||
isScript,
|
||||
isDemoDir,
|
||||
@@ -41,6 +42,10 @@ async function compileFile(filePath: string) {
|
||||
return compileStyle(filePath);
|
||||
}
|
||||
|
||||
if (isAsset(filePath)) {
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
return remove(filePath);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user