migrate tutorial
This commit is contained in:
parent
92c17d6376
commit
42d3510c74
9 changed files with 3078 additions and 8 deletions
|
|
@ -1,7 +1,23 @@
|
|||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import { defineConfig } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import { fileURLToPath } from 'url'
|
||||
|
||||
import mdx from 'vite-plugin-mdx';
|
||||
|
||||
// `options` are passed to `@mdx-js/mdx`
|
||||
const options = {
|
||||
// See https://mdxjs.com/advanced/plugins
|
||||
remarkPlugins: [
|
||||
// E.g. `remark-frontmatter`
|
||||
],
|
||||
rehypePlugins: [],
|
||||
};
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()]
|
||||
})
|
||||
input: {
|
||||
repl: fileURLToPath(new URL('./index.html', import.meta.url)),
|
||||
tutorial: fileURLToPath(new URL('./tutorial/index.html', import.meta.url)),
|
||||
},
|
||||
plugins: [react(), mdx(options)],
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue