node.js - Sass:有没有办法递归地查看文件?
问题描述
我是 Sass 的新手,我正在更新使用 Node-Sass 和 Node-Sass-Chokidar 的 NodeJS 项目的依赖项。我已将其切换到 Sass 并在将旧脚本转换为 Sass 时成功编译,但我得到以下输出:
Error: ENOSPC: System limit for number of file watchers reached, watch 'some/path/some-file'
Error: ENOSPC: System limit for number of file watchers reached, watch 'some/path/some-file'
Error: ENOSPC: System limit for number of file watchers reached, watch 'some/path/some-file'
Error: ENOSPC: System limit for number of file watchers reached, watch 'some/path/some-file'
...
我的新build-css
的watch-css
看起来像这样:
"build-css": "sass --load-path=./src --load-path=./node_modules src:src",
"watch-css": "npm run build-css && sass --load-path=./src --load-path=./node_modules src:src --watch",
我的老build-css
和watch-css
曾经看起来像这样:
"build-css-old": "node-sass-chokidar --include-path ./src --include-path ./node_modules src/ -o src/",
"watch-css-old": "npm run build-css && node-sass-chokidar --include-path ./src --include-path ./node_modules src/ -o src/ --watch --recursive",
我在翻译它们时是否搞砸了,还是因为--recursive
在 Sass 中没有选择(据我所知)?
Sass
和的版本Node-Sass-Chokidar
:
...
"node-sass-chokidar": "^1.5.0",
"sass": "^1.43.4",
...
解决方案
推荐阅读
- angular - Angular Formly 中的 Typescript 动态导入
- c - 我无法弄清楚我的代码中有什么错误-C 中的分段错误核心转储错误
- java - 如何在构建期间自动生成 pom 文件以上传到 maven2 存储库?
- python - 在 Sklearn 中使用 Classification_Report 函数
- swift - 我的 dateFormatter 函数中缺少什么?
- vue.js - 动态 Vue 表
- c++ - 访问修饰符后的 Clang 换行符
- android - Android:专注于视图,就像在 Photoshop 中选择图层一样
- jenkins - 如何在 SonarQube 中查看特定构建的扫描结果
- python - 使用 Python 删除所有项目 DynamoDB