wr报错怎么弄
监听的是2个东西,改变less还会报错,是什么问题那
监听的是2个东西,改变less还会报错,是什么问题那
2015-05-26
保存时报错解决办法:
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
举报