Skip to content
This repository has been archived by the owner on Dec 6, 2021. It is now read-only.

Commit

Permalink
fix: simplify progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Dec 7, 2018
1 parent 41dd692 commit 4916b41
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/poi/lib/webpack/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@ module.exports = (config, api) => {

const msg = `${(per * 100).toFixed(2)}% ${message} ${args
.map(arg => {
return arg.replace(homeRe, '~')
const message = arg.replace(homeRe, '~')
return message.length > 40
? `...${message.substr(message.length - 39)}`
: message
})
.join(' ')}`

Expand Down

0 comments on commit 4916b41

Please sign in to comment.