jxnblk / mdx-go

:zap: Lightning fast MDX-based dev server for progressive documentation
https://mdx-go.now.sh
MIT License
364 stars 27 forks source link

Custom File Match #33

Open fredboyle opened 5 years ago

fredboyle commented 5 years ago

Attempting to use a custom file matching pattern to only process .mdx files and ignore .js but not having any luck.

I've added: export const files = require.context('.', true, /\.mdx$/, 'lazy')

To the root level index.mdx file but it is still attempting to process .js files.

What might I be doing incorrectly?

Thanks for your help.