feat(cli): bump webpack@5

This commit is contained in:
chenjiahan
2020-10-13 19:15:32 +08:00
parent 438dcbc0ff
commit 30c24ba23f
8 changed files with 315 additions and 817 deletions
@@ -10,7 +10,7 @@ import { PACKAGE_ENTRY_FILE, PACKAGE_STYLE_FILE } from '../common/constant';
const PLUGIN_NAME = 'VantCliSitePlugin';
export async function genSiteEntry() {
export async function genSiteEntry(): Promise<void> {
return new Promise((resolve, reject) => {
genStyleDepsMap()
.then(() => {
@@ -24,7 +24,7 @@ export async function genSiteEntry() {
genSiteDesktopShared();
resolve();
})
.catch(err => {
.catch((err) => {
console.log(err);
reject(err);
});