I would like to use the official Sass Bootstrap port along with the Grunt.js task runner and the Compass framework, but according to the manual ( https://github.com/twbs/bootstrap-sass#bootstrap-for-sass ) t successfully.
Successfully installed these gems:
bootstrap-sass (3.1.0.1, 3.1.0.0) compass (0.12.2) sass (3.2.14, 3.2.13, 3.2.12)
My Gruntfile.js:
'use strict'; module.exports = function (grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), compass: { options: { httpPath: './', sassDir: '<%= pkg.css.src %>', cssDir: '<%= pkg.css.dest %>', imagesDir: '<%= pkg.graphics.cssPath %>' }, dev: { options: { environment: 'development', outputStyle: 'expanded', force: true } }, prod: { options: { environment: 'production', outputStyle: 'compressed', force: true } } }, }); grunt.loadNpmTasks('grunt-contrib-compass'); grunt.registerTask('default', ['compass:dev']); };
At the beginning of my custom.scss, I have:
@import "compass"; @import "boostrap";
When i type
grunt
at the command prompt, I get the following error:
Syntax error: File to import not found or unreadable: boostrap. Load paths: c:/Users/Radek/WWW/svobodanabytek/src/sass C:/Ruby193/lib/ruby/gems/1.9.1/gems/compass-0.12.2/frameworks/blueprint/stylesheets C:/Ruby193/lib/ruby/gems/1.9.1/gems/compass-0.12.2/frameworks/compass/stylesheets Compass::SpriteImporter on line 2 of c:/Users/Radek/WWW/svobodanabytek/src/sass/custom.scss
Without line 2 (@import "boostrap";) everything works fine.
What should I do to start using the bootstrap crane in Grunt? Install the new Grunt plugin? Thanks for any answer.