mirror of
https://github.com/youzan/vant.git
synced 2025-10-16 08:00:34 +00:00
fix(cli): failed to throw error (#7783)
* fix(cli): failed to throw error * fix: stat
This commit is contained in:
@@ -7,7 +7,7 @@ export async function compilePackage(isMinify: boolean) {
|
||||
|
||||
webpack(config, (err, stats) => {
|
||||
if (err || stats.hasErrors()) {
|
||||
reject();
|
||||
reject(err || stats.toString());
|
||||
} else {
|
||||
resolve();
|
||||
}
|
||||
|
Reference in New Issue
Block a user