Static GitHub Issues

[1072] Adding .md loaders to webpack

prev: Is there any way to access nuxt context(error handler) after the page rendered
next: Fetch Data after navigation

Hello, I've just started diving into nuxt and one thing I'm tasked with is finding a way to pull markdown files with front matter into nuxt. I've found a couple good loaders for webpack, but when I attempt to use them I get an error:

This relative module was not found: * ../content/about.md in ./store/index.js

The path is correct, because if I change the extension of the file, it loads fine. I found several solutions to loading markdown+front-matter, but none of them worked with nuxt.

here's my build config after adding https://github.com/matthewwithanm/markdown-with-front-matter-loader to my packages. build: { loaders: [ { test: /\.md$/, loaders: ['markdown-with-front-matter'] }, ], }

Please let me know of any known solutions. Thanks,

  • Scott
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c937">#c937</a>)</em></sub></div>