From: Geoff Kimball Date: Tue, 29 Mar 2016 16:32:54 +0000 (-0700) Subject: In customizer Gulp tasks, don't print a $foundation-palette override if no color... X-Git-Tag: v6.2.1~30^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=266378bbbf941ce5d51bc16c722e75f0c3c89d35;p=thirdparty%2Ffoundation%2Ffoundation-sites.git In customizer Gulp tasks, don't print a $foundation-palette override if no color variables are included in the custom build definition --- diff --git a/customizer/complete.json b/customizer/complete.json index 3ec9134cf..9244c5619 100644 --- a/customizer/complete.json +++ b/customizer/complete.json @@ -42,9 +42,5 @@ "top_bar", "visibility", "float" - ], - "variables": { - "primary-color": "#2199e8", - "alert-color": "#ec5840" - } + ] } diff --git a/customizer/lib/sass.js b/customizer/lib/sass.js index 74c09c4d8..1df0a1071 100644 --- a/customizer/lib/sass.js +++ b/customizer/lib/sass.js @@ -48,7 +48,9 @@ module.exports = function(config, modules, variables) { } } - variableList.push(createPaletteMap(colorList)); + if (!empty(colorList)) { + variableList.push(createPaletteMap(colorList)); + } // Create module exports with @include for (var i in modules) {