mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-19 01:45:53 +00:00
1.2 KiB
1.2 KiB
title | description | links | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
nuxi analyze | Analyze the production bundle or your Nuxt application. |
|
npx nuxi analyze [ROOTDIR] [--cwd=<directory>] [--logLevel=<silent|info|verbose>] [--dotenv] [--name=<name>] [--no-serve]
The analyze
command builds Nuxt and analyzes the production bundle (experimental).
Arguments
Argument | Description |
---|---|
ROOTDIR="." |
Specifies the working directory (default: . ) |
Options
Option | Default | Description |
---|---|---|
--cwd=<directory> |
Specify the working directory, this takes precedence over ROOTDIR (default: . ) |
|
--logLevel=<silent|info|verbose> |
Specify build-time log level | |
--dotenv |
Path to .env file to load, relative to the root directory |
|
--name=<name> |
default |
Name of the analysis |
--no-serve |
Skip serving the analysis results |
::note
This command sets process.env.NODE_ENV
to production
.
::