mirror of
				https://github.com/mdbootstrap/mdb-ui-kit.git
				synced 2025-11-01 00:17:57 +03:00 
			
		
		
		
	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:
		
							parent
							
								
									9fa2cde8d4
								
							
						
					
					
						commit
						1e6c6cbace
					
				|  | @ -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", | ||||||
|  |  | ||||||
|  | @ -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"; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user