File tree 3 files changed +81
-16
lines changed
3 files changed +81
-16
lines changed Original file line number Diff line number Diff line change @@ -1672,7 +1672,7 @@ class Server {
1672
1672
}
1673
1673
1674
1674
logStatus ( ) {
1675
- const colorette = require ( "colorette " ) ;
1675
+ const nanocolors = require ( "nanocolors " ) ;
1676
1676
1677
1677
const getColorsOption = ( compilerOptions ) => {
1678
1678
let colorsEnabled ;
@@ -1683,7 +1683,7 @@ class Server {
1683
1683
) {
1684
1684
colorsEnabled = compilerOptions . stats ;
1685
1685
} else {
1686
- colorsEnabled = colorette . options . enabled ;
1686
+ colorsEnabled = nanocolors . isColorSupported ;
1687
1687
}
1688
1688
1689
1689
return colorsEnabled ;
@@ -1692,14 +1692,14 @@ class Server {
1692
1692
const colors = {
1693
1693
info ( useColor , msg ) {
1694
1694
if ( useColor ) {
1695
- return colorette . cyan ( msg ) ;
1695
+ return nanocolors . cyan ( msg ) ;
1696
1696
}
1697
1697
1698
1698
return msg ;
1699
1699
} ,
1700
1700
error ( useColor , msg ) {
1701
1701
if ( useColor ) {
1702
- return colorette . red ( msg ) ;
1702
+ return nanocolors . red ( msg ) ;
1703
1703
}
1704
1704
1705
1705
return msg ;
Original file line number Diff line number Diff line change 35
35
"ansi-html-community" : " ^0.0.8" ,
36
36
"bonjour" : " ^3.5.0" ,
37
37
"chokidar" : " ^3.5.1" ,
38
- "colorette" : " ^1.2.2" ,
39
38
"compression" : " ^1.7.4" ,
40
39
"connect-history-api-fallback" : " ^1.6.0" ,
41
40
"del" : " ^6.0.0" ,
45
44
"http-proxy-middleware" : " ^2.0.0" ,
46
45
"internal-ip" : " ^6.2.0" ,
47
46
"ipaddr.js" : " ^2.0.1" ,
47
+ "nanocolors" : " ^0.1.12" ,
48
48
"open" : " ^8.0.9" ,
49
49
"p-retry" : " ^4.5.0" ,
50
50
"portfinder" : " ^1.0.28" ,
You can’t perform that action at this time.
0 commit comments