Nuxt/docs/3.api/4.commands/build-module.md
Sébastien Chopin f26a801775
docs: update to new website (#23743)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-10-18 12:59:43 +02:00

972 B

title description links
nuxi build-module Nuxt command to build your Nuxt module before publishing.
label icon to size
Source i-simple-icons-github https://github.com/nuxt/cli/blob/main/src/commands/build-module.ts xs
npx nuxi build-module [--stub] [rootDir]

The build-module command runs @nuxt/module-builder to generate dist directory within your rootDir that contains the full build for your nuxt-module.

Option Default Description
rootDir . The root directory of the module to bundle.
--stub false Stub out your module for development using jiti. (note: This is mainly for development purposes.)

::read-more{to="https://github.com/nuxt/module-builder" icon="i-simple-icons-github" color="gray" target="_blank"} Read more about @nuxt/module-builder. ::