meriadec
7 years ago
6 changed files with 16 additions and 11 deletions
@ -1,8 +1,13 @@ |
|||||
// @flow
|
// @flow
|
||||
|
|
||||
const { NODE_ENV } = process.env |
const { NODE_ENV, STORYBOOK_ENV } = process.env |
||||
|
|
||||
global.__ENV__ = NODE_ENV === 'development' ? NODE_ENV : 'production' |
global.__ENV__ = NODE_ENV === 'development' ? NODE_ENV : 'production' |
||||
global.__DEV__ = global.__ENV__ === 'development' |
global.__DEV__ = global.__ENV__ === 'development' |
||||
global.__PROD__ = !global.__DEV__ |
global.__PROD__ = !global.__DEV__ |
||||
|
global.__STORYBOOK_ENV__ = STORYBOOK_ENV === '1' |
||||
global.__GLOBAL_STYLES__ = require('./styles/reset') |
global.__GLOBAL_STYLES__ = require('./styles/reset') |
||||
|
|
||||
|
if (STORYBOOK_ENV === '1') { |
||||
|
global.__APP_VERSION__ = '1.0.0' |
||||
|
} |
||||
|
Loading…
Reference in new issue