我从 Jade 开始,我有一个我想自动重新渲染的简单文件,
doctype html
html
head
title Angular App CS
link(rel='stylesheet' href='http://getbootstrap.com/dist/css/bootstrap.min.css')
script(src='http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.3/angular.min.js')
script(src='http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.1/js/bootstrap.min.js')
我正在使用此命令 jade -w -P index.jade
但仅在第一次呈现时,当我对 .jade
进行更新时,出现以下错误出现:
TypeError: path must be a string
at Object.fs.lstat (fs.js:675:11)
at renderFile (/usr/lib/node_modules/jade/bin/jade.js:172:6)
at StatWatcher.<anonymous> (/usr/lib/node_modules/jade/bin/jade.js:119:11)
at StatWatcher.emit (events.js:98:17)
at StatWatcher._handle.onchange (fs.js:1115:10)
会发生什么?
最佳答案
关于html - 为什么 --watch Jade 选项不起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27573129/