CLI reference
Build CLI command reference
Builds the current Sanity configuration to a static bundle.
USAGE
$ sanity build [OUTPUTDIR]
ARGUMENTS
[OUTPUTDIR] Output directory
FLAGS
--auto-updates Enable/disable auto updates of studio versions
--minify Enable/disable minifying of built bundles
--source-maps Enable source maps for built bundles (increases size of bundle)
--stats Show stats about the built bundles
-y, --yes Unattended mode, answers "yes" to any "yes/no" prompt and otherwise uses defaults
DESCRIPTION
Builds the Sanity Studio configuration into a static bundle
EXAMPLES
sanity build
sanity build --no-minify --source-maps