How to properly read markdown files in redwoodjs?

In a prior Redwood project I had to add to my custom webpack config to make markdown files work.

web/config/webpack.config.js

// Add custom rules for your project
// config.module.rules.push(YOUR_RULE)
config.module.rules.push({
test: /.md$/,
use: ‘raw-loader’,
})

2 Likes