summaryrefslogtreecommitdiff
path: root/Gruntfile.js
diff options
context:
space:
mode:
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index d8dbc5a6..19e8351a 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -229,8 +229,10 @@ grunt.registerTask('build_scss', 'build a regular theme from scss', function(the
.replace(/spin\(/g, 'adjust-hue(')
// 10. replace bower and imports in build.scss
.replace(/bootstrap\/less\//g, 'bootstrap-sass-official/assets/stylesheets/')
- .replace(/\.less/g, '');
- // 11. only assign variables if they haven't been previously set e.g. $var: #f00; > $var: #f00 !default;
+ .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)) {
out = out.replace(/^(\$.*);/gm, '$1 !default;');
}