unplugin-md
Starter template for unplugin.
Template Usage
To use this template, clone it down using:
npx degit lrr/unplugin-md my-unplugin
And do a global replace of unplugin-md
with your plugin name.
Then you can start developing your unplugin 🔥
To test your plugin, run: pnpm run dev
To release a new version, run: pnpm run release
Install
npm i unplugin-md
Vite
import Starter from 'unplugin-md/vite'
export default defineConfig({
plugins: [
Starter({ }),
],
})
Example: playground/
Rollup
import Starter from 'unplugin-md/rollup'
export default {
plugins: [
Starter({ }),
],
}
Webpack
module.exports = {
plugins: [
require('unplugin-md/webpack')({ })
]
}
Nuxt
export default {
buildModules: [
['unplugin-md/nuxt', { }],
],
}
This module works for both Nuxt 2 and Nuxt Vite
Vue CLI
module.exports = {
configureWebpack: {
plugins: [
require('unplugin-md/webpack')({ }),
],
},
}
esbuild
import { build } from 'esbuild'
import Starter from 'unplugin-md/esbuild'
build({
plugins: [Starter()],
})