diff options
author | Thomas Park <thomas@thomaspark.co> | 2015-07-07 14:03:38 -0400 |
---|---|---|
committer | Thomas Park <thomas@thomaspark.co> | 2015-07-07 14:03:38 -0400 |
commit | ceefe110c1f64b9ebca41215d02c6e50e45d9e19 (patch) | |
tree | e6997cc74837ee9f3251920f8a555af382830476 /Gruntfile.js | |
parent | f6c0658770d4a002adbecc95a2f1fd0c8534a7ed (diff) |
set default $bootstrap-sass-asset-helper value
Diffstat (limited to 'Gruntfile.js')
-rw-r--r-- | Gruntfile.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index 19e8351a..9c81f3b8 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -232,8 +232,10 @@ grunt.registerTask('build_scss', 'build a regular theme from scss', function(the .replace(/\.less/g, '') // 11. replace icon-font-path value with conditional for asset helpers .replace(/(\$icon-font-path:).*;/g, '$1 if($bootstrap-sass-asset-helper, "bootstrap/", "../fonts/bootstrap/");'); - // 12. only assign variables if they haven't been previously set e.g. $var: #f00; > $var: #f00 !default; if (/\/variables.less$/.test(lessFile)) { + // 12. set default value of $bootstrap-sass-asset-helper to false + out = "$bootstrap-sass-asset-helper: false;\n" + out; + // 13. only assign variables if they haven't been previously set e.g. $var: #f00; > $var: #f00 !default; out = out.replace(/^(\$.*);/gm, '$1 !default;'); } |