mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 07:05:11 +00:00
30695bdb48
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Roe <daniel@roe.dev>
16 lines
389 B
TypeScript
16 lines
389 B
TypeScript
// 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' })`
|
|
})
|
|
}
|
|
],
|
|
})
|