不知道为什么! window环境
wr --exec "lessc duang.less duang.css" duang.less。
还是不可以
wr工具此时执行的是spawn,需要执行的是exec,正确的代码为:wr --exec "lessc duang.less duang.css" duang.less。详解如下:
exec:
the command will not be parsed, as will be run as given
should handle i/o redirection shell operators
stdout and stderr output will be buffered until the command is complete
spawn:
the command will be parsed into space separated tokens, probably misinterpreting any quotes you have in your command
will not handle i/o redirection shell operators
stdout and stderr output will not be buffered
详解来源:https://www.npmjs.com/package/wr
???怎么解决