From eb6170f71e1ad0ae2564b0221c8c1c232bf67291 Mon Sep 17 00:00:00 2001 From: Derek Rushforth Date: Tue, 15 Nov 2016 08:24:57 -0700 Subject: [PATCH] Check if secrets.json exists before reading #23 --- Gruntfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 36fdabe..2677e6a 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -30,7 +30,7 @@ module.exports = function(grunt) { common changes centralized to key files instead of being littered throughout the Gruntfile. This also makes it easy to .gitignore secrets ================================================= */ - secret: grunt.file.readJSON('secrets.json'), + secret: grunt.file.exists('secrets.json') ? grunt.file.readJSON('secrets.json') : {}, config: grunt.file.readJSON('config.json'), /* SASS