nuxt build

Исходники
Собирает ваше приложение Nuxt.
Terminal
npx nuxt build [ROOTDIR] [--cwd=<directory>] [--logLevel=<silent|info|verbose>] [--prerender] [--preset] [--dotenv] [--envName]

Команда build создает директорию .output со всем вашим приложением, сервером и зависимостями, готовыми для продакшена.

Arguments

ArgumentDescription
ROOTDIR="."Specifies the working directory (default: .)

Options

OptionDefaultDescription
--cwd=<directory>Specify the working directory, this takes precedence over ROOTDIR (default: .)
--logLevel=<silent|info|verbose>Specify build-time log level
--prerenderBuild Nuxt and prerender static routes
--presetNitro server preset
--dotenvPath to .env file to load, relative to the root directory
--envNameThe environment to use when resolving configuration overrides (default is production when building, and development when running the dev server)
Эта команда устанавливает process.env.NODE_ENV в production.
--prerender всегда будет устанавливать preset в static