nuxt analyze

Исходники
Проанализируйте продакшен бандл или ваше приложение Nuxt.
Terminal
npx nuxt analyze [ROOTDIR] [--cwd=<directory>] [--logLevel=<silent|info|verbose>] [--dotenv] [--name=<name>] [--no-serve]

Команда analyze собирает Nuxt и анализирует продакшен бандл (экспериментально).

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
--dotenvPath to .env file to load, relative to the root directory
--name=<name>defaultName of the analysis
--no-serveSkip serving the analysis results
Эта команда устанавливает process.env.NODE_ENV в production.