mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
windows check
This commit is contained in:
parent
c2d6740f0c
commit
2ad24444f1
@ -6,7 +6,7 @@ import logUpdate from 'log-update'
|
|||||||
const sharedState = {}
|
const sharedState = {}
|
||||||
|
|
||||||
const BAR_LENGTH = 25
|
const BAR_LENGTH = 25
|
||||||
const IS_WINDOWS = false
|
const IS_WINDOWS = /^win/.test(process.platform)
|
||||||
const BLOCK_CHAR = IS_WINDOWS ? ' ' : '█'
|
const BLOCK_CHAR = IS_WINDOWS ? ' ' : '█'
|
||||||
const BLOCK_CHAR2 = IS_WINDOWS ? '#' : '█'
|
const BLOCK_CHAR2 = IS_WINDOWS ? '#' : '█'
|
||||||
const ICON_CHAR = IS_WINDOWS ? ':' : '⠸'
|
const ICON_CHAR = IS_WINDOWS ? ':' : '⠸'
|
||||||
|
Loading…
Reference in New Issue
Block a user