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:
zoy-l
2021-06-25 17:02:55 +08:00
committed by GitHub
parent 14d0a3136a
commit 384ee56f13
2 changed files with 10 additions and 0 deletions

View File

@@ -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);
}