mirror of
https://gitee.com/WeBank/fes.js.git
synced 2024-12-02 19:58:18 +08:00
style: update fes-preset-built-in
This commit is contained in:
parent
212a761590
commit
182b4820c4
@ -76,9 +76,8 @@ export default function (api) {
|
||||
files.forEach((file) => {
|
||||
const source = join(path, file);
|
||||
const target = join(base, file);
|
||||
const absPath = join(base, path);
|
||||
if (!existsSync(dirname(absPath))) {
|
||||
api.utils.mkdirp.sync(dirname(absPath));
|
||||
if (!existsSync(dirname(target))) {
|
||||
api.utils.mkdirp.sync(dirname(target));
|
||||
}
|
||||
if (statSync(source).isDirectory()) {
|
||||
api.utils.mkdirp.sync(target);
|
||||
|
Loading…
Reference in New Issue
Block a user