0
私はこの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
があります。どういう意味ですか?フロントマティスのデータはどうすれば入手できますか?おそらくもっと正確ですが、私はどのように 'ファイル'オブジェクトにアクセスしますか?