- Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathenv.js
More file actions
Latest commit
10 lines (9 loc) · 433 Bytes
/
Copy pathenv.js
File metadata and controls
10 lines (9 loc) · 433 Bytes
1
2
3
4
5
6
7
8
9
10
constisTest=process.env.NODE_ENV==='test';
exports.isProduction=process.env.NODE_ENV==='production';
exports.isCI=Boolean(process.env.CI);
exports.isTest=isTest;
exports.isDevelopment=isTest||process.env.NODE_ENV==='development';
exports.isDev=exports.isDevelopment;
exports.isProd=exports.isProduction;
exports.isHot=Boolean(process.env.HOT);
exports.isBrowser=!process&&typeofwindow!=='undefined';