yaml-frontmatter-loader

Yaml frontmatter loader for webpack

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
yaml-frontmatter-loader
0.1.05 years ago7 years agoMinified + gzip package size for yaml-frontmatter-loader in KB

Readme

yaml-frontmatter-loader for webpack
YAML Frontmatter loader for webpack. Converts YAML in files to JSON. You should chain it with json-loader.

Installation

npm install yaml-frontmatter-loader

Usage

Documentation: Using loaders
var json = require("json!yaml-frontmatter-loader!./file.md");
// => returns file.md as javascript object

License

MIT (http://www.opensource.org/licenses/mit-license.php)