bootstrap-sass #941 counterexample
$ npm install bower grunt grunt-contrib-sass | |
<snipped successful installation> | |
$ ./node_modules/.bin/bower install bootstrap-sass | |
bower bootstrap-sass#* cached git://github.com/twbs/bootstrap-sass.git#3.3.4 | |
bower bootstrap-sass#* validate 3.3.4 against git://github.com/twbs/bootstrap-sass.git#* | |
bower bootstrap-sass#* new version for git://github.com/twbs/bootstrap-sass.git#* | |
bower bootstrap-sass#* resolve git://github.com/twbs/bootstrap-sass.git#* | |
bower bootstrap-sass#* download https://github.com/twbs/bootstrap-sass/archive/v3.3.5.tar.gz | |
bower bootstrap-sass#* extract archive.tar.gz | |
bower bootstrap-sass#* resolved git://github.com/twbs/bootstrap-sass.git#3.3.5 | |
bower jquery#>= 1.9.0 cached git://github.com/jquery/jquery.git#2.1.4 | |
bower jquery#>= 1.9.0 validate 2.1.4 against git://github.com/jquery/jquery.git#>= 1.9.0 | |
bower bootstrap-sass#~3.3.5 install bootstrap-sass#3.3.5 | |
bower jquery#>= 1.9.0 install jquery#2.1.4 | |
bootstrap-sass#3.3.5 bower_components/bootstrap-sass | |
└── jquery#2.1.4 | |
jquery#2.1.4 bower_components/jquery | |
$ mkdir style | |
$ mkdir style/css style/sass | |
$ echo '@import "../../bower_components/bootstrap-sass/assets/stylesheets/bootstrap";' > style/sass/main.scss | |
$ subl Gruntfile.js | |
$ cat Gruntfile.js | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
sass: { | |
dist: { | |
files: { | |
'style/css/main.css': 'style/sass/main.scss' | |
} | |
} | |
} | |
}); | |
grunt.loadNpmTasks('grunt-contrib-sass'); | |
grunt.registerTask('default', ['sass']); | |
}; | |
$ grunt | |
Running "sass:dist" (sass) task | |
Done, without errors. | |
$ head style/css/main.css | |
@charset "UTF-8"; | |
/*! | |
* Bootstrap v3.3.5 (http://getbootstrap.com) | |
* Copyright 2011-2015 Twitter, Inc. | |
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | |
*/ | |
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */ | |
html { | |
font-family: sans-serif; | |
-ms-text-size-adjust: 100%; | |
$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
I got it working. thanks!!!!