【文件属性】:
文件名称:snowpack-plugin-mdx:使用MDX编译器在Snowpack中构建.mdx和.md文件
文件大小:150KB
文件格式:ZIP
更新时间:2021-05-17 00:05:23
mdx snowpack mdx-js snowpack-plugin snowpack-mdx
snowpack-plugin-mdx
使用在构建.mdx和.md文件
npm i -D snowpack-plugin-mdx @mdx-js/mdx @mdx-js/react
快速开始
// snowpack.config.json
{
"plugins" : [ [ "snowpack-plugin-mdx" , { /* see "Plugin Options" below */ } ] ]
}
插件选项
interface SnowpackPluginMdxOptions {
/**
* Includes only the specified paths
*/
include ?: string [ ]
/**
* Excludes the specified paths
*/
exclude ?: string [ ]
【文件预览】:
snowpack-plugin-mdx-master
----yarn.lock(367KB)
----src()
--------index.ts(2KB)
--------__snapshots__()
--------__fixtures__()
--------index.test.ts(3KB)
----babel.config.js(101B)
----types()
--------index.d.ts(637B)
----.travis.yml(231B)
----tsconfig.json(300B)
----LICENSE(1KB)
----test()
--------resolve-snapshot.js(629B)
--------setup.js(98B)
----README.md(2KB)
----.gitignore(32B)
----CHANGELOG.md(2KB)
----package.json(4KB)