Skip to content

ChristopherBiscardi/frontmatter-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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']
    }]
  }
}

About

webpack frontmatter loader

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published