Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/Schniz/cmd-ts. 💻 A type-driven command line argument parser cmd-ts.now.sh
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546const shiki = require('shiki');
const withMDX = require('@next/mdx')({ extension: /\.mdx?$/, options: { remarkPlugins: [ require('remark-slug'), [ require('remark-autolink-headings'), { behavior: 'append', content: { type: 'element', tagName: 'span', properties: { className: ['heading-link'] }, children: [ { type: 'text', value: ' #', }, ], }, }, ], [ require('gridsome-plugin-remark-shiki'), { theme: shiki.loadTheme('./vendor/github-theme.json'), skipInline: true, }, ], ], },});
module.exports = withMDX({ pageExtensions: ['js', 'tsx', 'ts'], webpack: config => { config.resolve.alias = { ...config.resolve.alias, '~': __dirname, }; return config; },});