From 8d9df0eeb19fe4ef3a62ec1882cd36be96fbfa5d Mon Sep 17 00:00:00 2001 From: PliablePixels Date: Tue, 14 Jul 2015 16:01:38 -0400 Subject: strip console.log only for release mode --- hooks/after_prepare/uglify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/after_prepare/uglify.js b/hooks/after_prepare/uglify.js index 8977467d..8e557ad1 100755 --- a/hooks/after_prepare/uglify.js +++ b/hooks/after_prepare/uglify.js @@ -17,7 +17,7 @@ var cliCommand = process.env.CORDOVA_CMDLINE; // hook configuration var isRelease = true; // by default this hook is always enabled, see the line below on how to execute it only for release -//var isRelease = (cliCommand.indexOf('--release') > -1); +var isRelease = (cliCommand.indexOf('--release') > -1); var recursiveFolderSearch = true; // set this to false to manually indicate the folders to process var foldersToProcess = [ // add other www folders in here if needed (ex. js/controllers) 'js', -- cgit v1.2.3