首页 > wr 工具 watch less文件在保存时报错

wr 工具 watch less文件在保存时报错

请问这个是什么问题,谢谢!


wr工具此时执行的是spawn,需要执行的是exec,正确的代码为:wr --exec "lessc --source-map 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


怎么没有人回答呢 呜呜我也也到了同样的问题


请注意代码中的不是单引号是双引号
再次发一下代码
wr "lessc --source-map duang.less duang.css" duang.less。

当出现楼主那样的问题时需要注意的是要加上--exec

【热门文章】
【热门文章】