Nuxt/nuxt.config.ts

16 lines
389 B
TypeScript
Raw Normal View History

// For pnpm typecheck:docs to generate correct types
import { addPluginTemplate } from 'nuxt/kit'
export default defineNuxtConfig({
pages: process.env.DOCS_TYPECHECK === 'true',
modules: [
function () {
addPluginTemplate({
filename: 'plugins/my-plugin.mjs',
getContents: () => `export default defineNuxtPlugin({ name: 'my-plugin' })`
})
}
],
})