frontmatter-loader

0.0.1 • Public • Published

Frontmatter loader for Webpack

Loads files with frontmatter for webpack.

---
title: Just hack'n
description: Nothing to see here
---

returns json in the form:

{
  attributes: {
    title: 'Just hack\'n',
    description: 'Nothing to see here'
  },
  body: 'This is some text about some stuff that happened sometime ago'
}

Installation

A possible webpack configuration could be:

npm install --save-dev frontmatter-loader
module.exports = {
  module: {
    loaders: [{
      test: /\.md$/,
      loaders: ['json', 'frontmatter']
    }]
  }
}

/frontmatter-loader/

    Package Sidebar

    Install

    npm i frontmatter-loader

    Weekly Downloads

    2

    Version

    0.0.1

    License

    ISC

    Last publish

    Collaborators

    • biscarch