javascript - 如何在 gulp 中使用 styledown?
问题描述
我有任务
gulp.task('generate-styleguid',() => {
'use strict';
return gulp.src('./src/styleguid')
.pipe(styledown({
config: './src/styleguid/config.md ',
filename: './src/styleguid/styleguide.html'
}))
.pipe(gulp.dest('./src/styleguid/'))
})
当我运行它时出现错误: fs.js:646 return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); ^ 错误:ENOENT:没有这样的文件或目录
路径会不会有问题?以及如何解决?
解决方案
config.md
在你的路径之后有一个额外的空间。
行config: './src/styleguid/config.md',应该是config: './src/styleguid/config.md',
推荐阅读
- python - 分析价格和提及次数之间相关性的最佳方法是什么?
- api - 是否有一个很好的 API 用于 Web 应用程序客户端之间的锁定以避免冲突编辑?
- abap - 数据对象没有名为 BACK_ORDER 的组件
- node.js - Mongoose:如何在数组中填充
- java - 字符串 - 用户输入某个单词后如何停止提示
- javascript - 使用 puppeteer-cluster 运行多个 puppeteer 执行
- angular - 观众:单一测试的覆盖提供者(角度通用)
- reactjs - 查询范围选择器中各个按钮的选择器
- javascript - Ionic Vue:数据更新时如何更新 IonSlides?
- python - 在 Django DeleteView 中获取已删除的对象