windows 下, wr 'lessc --source-map lessname.less cssname.css' lessname.less ,当文件发生变化时。node直接报错。
windows 下, wr 'lessc --source-map lessname.less cssname.css' lessname.less ,当文件发生变化时。node直接报错。
PS:无论是window的cmd或者,git bash 都如此。
windows 下, wr 'lessc --source-map lessname.less cssname.css' lessname.less ,当文件发生变化时。node直接报错。
PS:无论是window的cmd或者,git bash 都如此。
2015-06-02
保存时报错解决办法:
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
举报