Browse Source

Merge pull request #29 from loeck/master

Fix globals
master
Meriadec Pillet 7 years ago
committed by GitHub
parent
commit
7c403634ee
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/globals.js

2
src/globals.js

@ -2,6 +2,6 @@
const { NODE_ENV } = process.env
global.__ENV__ = NODE_ENV === 'production' ? NODE_ENV : 'development'
global.__ENV__ = NODE_ENV === 'development' ? NODE_ENV : 'production'
global.__DEV__ = global.__ENV__ === 'development'
global.__PROD__ = !global.__DEV__

Loading…
Cancel
Save