Skip to content

Commit

Permalink
handle missing .env
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesward committed Jan 12, 2016
1 parent 964f670 commit fb14fe5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion gulpfile.js
@@ -1,7 +1,14 @@
var gulp = require('gulp');

function loadEnv() {
require('gulp-env')({file: '.env', type: '.ini'});
try {
if (require('fs').statSync('.env').isFile()) {
require('gulp-env')({file: '.env', type: '.ini'});
}
}
catch (e) {
// ignored
}
}


Expand Down

0 comments on commit fb14fe5

Please sign in to comment.