Environment Mode - CI/CD Glossary Definition
Environment mode tells the bundler whether to optimize for debugging or for a deployable release.
Environment mode is the setting (typically development or production) that tells a bundler which optimizations and defaults to apply. Webpack reads it from the mode option and exposes it as process.env.NODE_ENV.
Setting mode to production enables minification and hashing, while development keeps output readable. Libraries also branch on process.env.NODE_ENV to strip dev checks. In CI, always set the mode explicitly so builds are reproducible.
Related guides
Production Build - CI/CD Glossary DefinitionProduction Build: A production build compiles an app with all optimizations enabled, including minification,…
Development Build - CI/CD Glossary DefinitionDevelopment Build: A development build compiles an app for fast iteration and debugging, skipping heavy optim…
Target (build) - CI/CD Glossary DefinitionTarget (build): A build target is the runtime environment a bundler compiles output for, such as a browser, N…