Skip to content

Instantly share code, notes, and snippets.

@zackproser
Last active November 17, 2019 20:44
Show Gist options
  • Save zackproser/85c970ab620ca7ac6ed44927c55cd6b2 to your computer and use it in GitHub Desktop.
Save zackproser/85c970ab620ca7ac6ed44927c55cd6b2 to your computer and use it in GitHub Desktop.
{
build: {
/*
** You can extend webpack config here
*/
extend(config, ctx) {
config.module.rules.push({
test: /\.md$/,
include: [path.resolve(__dirname, 'posts'), path.resolve(__dirname, 'blog')],
loader: 'frontmatter-markdown-loader'
})
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment