【发布时间】:2016-04-12 07:05:07
【问题描述】:
我正在尝试使用这个npm module 从降价文件中删除一些front matter,然后让我访问它删除的降价。这让我想到了我的问题(来自模块页面的代码):
var frontMatter = require('gulp-front-matter');
gulp.task('blog-posts', function() {
gulp.src('./posts/*.md')
.pipe(frontMatter({ // optional configuration
property: 'frontMatter', // property added to file object
remove: true // should we remove front-matter header?
}))
.pipe(…);
});
所以有评论// property added to the file object。这意味着什么?如何获取前沿数据?也许更准确地说,我如何访问“文件”对象?
【问题讨论】: