Terminal colors with plugin-run-script #1038
-
I have a script that's doing some handlebar preprocessing that lints and compiles html to snowpack. I'm using
In the Any thoughts here? Alternatively, i would love not to have to use the plugin system and instead use a snowpack JS api. i.e.: I invoke something like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Appears to be related to this. So looks like a problem with chalk as a child process. Replacing chalk with colors or using normal ansi codes seems to work but gulp further uses chalk internally. Using
Another avenue might be to set environment variable FORCE_COLOR=1 somewhere. More clues here https://github.com/chalk/supports-color#info |
Beta Was this translation helpful? Give feedback.
Appears to be related to this.
chalk/chalk#381
So looks like a problem with chalk as a child process. Replacing chalk with colors or using normal ansi codes seems to work but gulp further uses chalk internally. Using
--color
flag to force colors fixes the issue. e.g:Another avenue might be to set environment variable FORCE_COLOR=1 somewhere. More clues here https://github.com/chalk/supports-color#info