-
Install:
npm install @barmplus/vite-plugin-mdx -D
or
yarn add @barmplus/vite-plugin-mdx -D
-
Add the plugin to your
vite.config.js
.// vite.config.js import mdx from '@barmplus/vite-plugin-mdx' const options = { framework: 'react' // react or vue3 } export default { plugins: [mdx(options)] }
-
You can now write
.mdx
files.// hello.mdx # Hello MDX & Vite This is a plugin of MDX for vite
// App.jsx import React from 'react' import Hello from './hello.mdx' function App() { return ( <div className="App"> <Hello/> </div> ) } export default App
-
Notifications
You must be signed in to change notification settings - Fork 0
BARMPlus/vite-plugin-mdx
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
🏄 This is a plugin of MDX for vite
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published