【发布时间】:2017-02-14 05:39:05
【问题描述】:
我见过很多使用node-sass 观看特定文件夹的示例,但我的css 并不都在同一个文件夹中。我想让它像 onchange 一样监视 scss 文件的所有子目录(仅作为示例)。我假设语法类似于:
`node-sass -w app/**/*.scss -o app/**/`
...但这会产生错误:Error: ENOENT: no such file or directory, lstat 'app/**/*.scss'
我尝试用node-sass 做的事情是否可行?如果没有,是否有更好的方法将我的 scss 文件批量编译为 css?如果可能的话,我会尝试只使用 npm 脚本进行构建。
【问题讨论】: