fix(mod_assets): Fix async handling in asset processing
This commit is contained in:
@ -31,7 +31,7 @@ export class AssetsHandler {
|
||||
optionsArg.to = plugins.smartpath.transform.toAbsolute(optionsArg.to, paths.cwd) as string;
|
||||
|
||||
// lets clean theh target directory
|
||||
plugins.smartfile.fs.ensureEmptyDir(optionsArg.to);
|
||||
await plugins.smartfile.fs.ensureEmptyDir(optionsArg.to);
|
||||
|
||||
plugins.smartfile.fs.copySync(optionsArg.from, optionsArg.to, {
|
||||
replaceTargetDir: true,
|
||||
|
Reference in New Issue
Block a user