mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-17 00:24:43 -04:00
enhancement: add profiling flag to analyze run
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
1e964839b4
commit
58c2cfe727
3 changed files with 15 additions and 4 deletions
|
@ -43,9 +43,16 @@ const isDevMode = process.env.NODE_ENV === 'development'
|
|||
*/
|
||||
const isProductionMode = process.env.NODE_ENV === 'production'
|
||||
|
||||
/**
|
||||
* Defines if the current runtime contains the bundle analyzer and profiling metrics.
|
||||
* @type boolean
|
||||
*/
|
||||
const isProfilingMode = !!process.env.ANALYZE && isPositiveAnswer(process.env.ANALYZE)
|
||||
|
||||
module.exports = {
|
||||
isTestMode,
|
||||
isMockMode,
|
||||
isDevMode,
|
||||
isProductionMode
|
||||
isProductionMode,
|
||||
isProfilingMode
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue