mirror of
https://github.com/locomotivemtl/locomotive-boilerplate.git
synced 2026-01-15 00:55:08 +08:00
Add documentation for esbuild process.env
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
/**
|
||||
* > When using the esBuild API, all `process.env.NODE_ENV` expressions
|
||||
* > are automatically defined to `"production"` if all minification
|
||||
* > options are enabled and `"development"` otherwise. This only happens
|
||||
* > if `process`, `process.env`, and `process.env.NODE_ENV` are not already
|
||||
* > defined. This substitution is necessary to avoid code crashing instantly
|
||||
* > (since `process` is a Node API, not a web API).
|
||||
* > — https://esbuild.github.io/api/#platform
|
||||
*/
|
||||
const env = process.env.NODE_ENV
|
||||
|
||||
export default config = Object.freeze({
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user