W3cubDocs

/webpack 2

yaml-frontmatter-loader

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)

© 2012–2016 Tobias Koppers
Licensed under the Creative Commons Attribution License 4.0.
https://webpack.js.org/loaders/yaml-frontmatter-loader/