Skip to content

Instantly share code, notes, and snippets.

@mako-taco
Created October 3, 2014 14:18
Show Gist options
  • Save mako-taco/29923598b64b55a5e5ee to your computer and use it in GitHub Desktop.
Save mako-taco/29923598b64b55a5e5ee to your computer and use it in GitHub Desktop.
Example Gruntfile
grunt.initConfig({
sass: {
dist: {
files: [{
cwd: 'app/styles',
src: '**/*.scss',
dest: '../.tmp/styles',
expand: true,
ext: '.css'
}]
}
},
autoprefixer: {
options: ['last 1 version'],
dist: {
files: [{
expand: true,
cwd: '.tmp/styles',
src: '{,*/}*.css',
dest: 'dist/styles'
}]
}
},
watch: {
styles: {
files: ['app/styles/{,*/}*.scss'],
tasks: ['sass:dist', 'autoprefixer:dist']
}
}
});
grunt.registerTask('default', ['styles', 'watch']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment