Skip to content

Commit

Permalink
Grunt task for autoprefixer
Browse files Browse the repository at this point in the history
  • Loading branch information
bassettsj committed Jun 2, 2014
1 parent b00c705 commit ca53916
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node_modules
.sass-cache
dist
26 changes: 19 additions & 7 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,42 @@
module.exports = function(grunt){
module.exports = function(grunt) {
grunt.initConfig({
package: grunt.file.readJSON('package.json'),
// task
sass: {
// target
theme:{
options:{
theme: {
options: {
// note* requires SASS >=3.3.0 `gem install sass --pre`
sourcemap: true
},
// files
files: [{
dest: 'dist/css/awesome-theme.css',
src: 'scss/main.scss'
},{
}, {

}]
}
},
autoprefixer: {
theme: {
options: {
map: true
},
src: 'dist/css/**/*.css' // can leave the dest off
}
}
});

grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-autoprefixer');

grunt.registerTask(
'default',
'Compile SASS',
['sass:theme']
'Compile SASS & Vendor Prefix',
[
'sass:theme',
'autoprefixer:theme'
]
);
};
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"license": "BSD-2",
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-sass": "0.7.3"
"grunt-contrib-sass": "0.7.3",
"grunt-autoprefixer": "^0.7.3"
}
}

0 comments on commit ca53916

Please sign in to comment.