When using sass, the bootstrap-sass dependancy path should be specified in

the loadpath and not hardcoded in the import statement
This commit is contained in:
Pavel Tarno 2015-12-08 12:20:39 +02:00
parent 9fa2cde8d4
commit 1e6c6cbace
2 changed files with 5 additions and 2 deletions

View File

@ -6,7 +6,7 @@ module.exports = function (grunt) {
var path = require('path'); var path = require('path');
var configBridge = grunt.file.readJSON('./grunt/configBridge.json', {encoding: 'utf8'}); var configBridge = grunt.file.readJSON('./grunt/configBridge.json', {encoding: 'utf8'});
var generateIconsData = require('./grunt/bmd-icons-data-generator.js'); var generateIconsData = require('./grunt/bmd-icons-data-generator.js');
Object.keys(configBridge.paths).forEach(function (key) { Object.keys(configBridge.paths).forEach(function (key) {
configBridge.paths[key].forEach(function (val, i, arr) { configBridge.paths[key].forEach(function (val, i, arr) {
arr[i] = path.join('./docs/assets', val); arr[i] = path.join('./docs/assets', val);
@ -228,6 +228,9 @@ module.exports = function (grunt) {
// Test compile sass // Test compile sass
sass: { sass: {
compile: { compile: {
options:{
loadPath: "bower_components/bootstrap-sass/assets/stylesheets",
},
files: [{ files: [{
expand: true, expand: true,
cwd: "sass", cwd: "sass",

View File

@ -1,2 +1,2 @@
@import "../bower_components/bootstrap-sass/assets/stylesheets/bootstrap/variables"; @import "bootstrap/variables";
//@import "../bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins"; //@import "../bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins";