mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
feat(cli): bump webpack@5
This commit is contained in:
@@ -24,7 +24,7 @@ function runDevServer(
|
||||
const server = new WebpackDevServer(webpack(config), config.devServer);
|
||||
|
||||
// this is a hack to disable wds status log
|
||||
(server as any).showStatus = function() {};
|
||||
(server as any).showStatus = function () {};
|
||||
|
||||
const host = get(config.devServer, 'host', 'localhost');
|
||||
server.listen(port, host, (err?: Error) => {
|
||||
@@ -58,7 +58,7 @@ function build() {
|
||||
const config = getSitePrdConfig();
|
||||
|
||||
webpack(config, (err, stats) => {
|
||||
if (err || stats.hasErrors()) {
|
||||
if (err || (stats && stats.hasErrors())) {
|
||||
reject();
|
||||
} else {
|
||||
resolve();
|
||||
|
Reference in New Issue
Block a user