nuxt build

Source
Nuxt 애플리케이션을 빌드합니다.
Terminal
npx nuxt build [ROOTDIR] [--cwd=<directory>] [--logLevel=<silent|info|verbose>] [--prerender] [--preset] [--dotenv] [--envName] [-e, --extends=<layer-name>]

build 명령은 프로덕션 준비가 완료된 애플리케이션, 서버 및 모든 의존성이 포함된 .output 디렉터리를 생성합니다.

Arguments

ArgumentDescription
ROOTDIR="."작업 디렉터리를 지정합니다 (기본값: .)

Options

OptionDefaultDescription
--cwd=<directory>작업 디렉터리를 지정합니다. 이 값은 ROOTDIR 보다 우선합니다 (기본값: .)
--logLevel=<silent|info|verbose>빌드 시 로그 레벨을 지정합니다
--prerenderNuxt를 빌드하고 정적 라우트를 프리렌더링합니다
--presetNitro 서버 프리셋
--dotenv루트 디렉터리를 기준으로 로드할 .env 파일의 경로
--envName설정 오버라이드를 해결할 때 사용할 환경 이름 (build 시 기본값은 production, 개발 서버 실행 시 기본값은 development)
-e, --extends=<layer-name>Nuxt 레이어를 확장합니다
이 명령은 process.env.NODE_ENVproduction으로 설정합니다.
--prerender는 항상 presetstatic으로 설정합니다.