Happening this week! Hear how Amplitude built a self-serve marketing engine to drive growth 🚀

Build

Builds the current Sanity configuration to a static bundle

usage: sanity build [OUTPUT_DIR]

   Builds the current Sanity configuration to a static bundle

Options
  --source-maps Enable source maps for built bundles (increases size of bundle)
  --no-minify Skip minifying built Javascript (speeds up build, increases size of bundle)
  -y, --yes Use unattended mode, accepting defaults and using only flags for choices

Examples
  sanity build
  sanity build --no-minify --source-maps

Was this article helpful?