0.0.7-beta.3 • Published 10 months ago

plugins-mdx v0.0.7-beta.3

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

plugins-mdx

NPM version

A mdx plugin collection for plugins

仅支持vite

安装

npm i -D plugins-mdx

使用

import { defineConfig } from 'vite'
import mdx from 'plugins-mdx'

export default defineConfig({
  plugins: [
    mdx()
  ]
})

选项

export interface options {
  /**
   * root path
   */
  root: string;
  /**
   * Base path of the site.
   */
  base: string;
  /**
   * Enable single page application in production.
   */
  enableSpa?: boolean;
  /**
   * Whether to fail builds when there are dead links.
   */
  allowDeadLinks?: boolean;
  /**
   * vite plugin array
   */
  plugins: Plugin[];
}