Skip to content

Instantly share code, notes, and snippets.

@toolmantim
Created May 12, 2013 00:18
Show Gist options
  • Save toolmantim/5561900 to your computer and use it in GitHub Desktop.
Save toolmantim/5561900 to your computer and use it in GitHub Desktop.
If you're using SASS, Grunt and Bower you may wonder "How do I @import the CSS file from a bower component I just installed?" Well I'm afraid you're asking the wrong question—@import is really only designed to import SCSS files (for now). But there is hope! grunt-contrib-sass also supports concatenation, and to use it simply include the CSS file…
module.exports = function(grunt) {
grunt.initConfig({
// ...
sass: {
styles: {
files: {
'sass/styles.css': [
'components/normalize-css/normalize.css',
'sass/styles.scss'
]
}
}
},
// ...
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment