Skip to content

Instantly share code, notes, and snippets.

@matthewbeta
Created October 23, 2014 21:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthewbeta/461b95693fe810aea0ab to your computer and use it in GitHub Desktop.
Save matthewbeta/461b95693fe810aea0ab to your computer and use it in GitHub Desktop.
// more stuff
sass: {
dev: {
options: { // Target options
style: 'expanded'
},
},
prod: {
options: {
style: 'compressed'
}
}
}
// more stuff
grunt.registerTask('default', ['sass']); //run with grunt (does both)
grunt.registerTask('dev', ['sass:dev']); //run with grunt dev (runs the dev task)
grunt.registerTask('prod', ['sass:prod']);; // run with grunt prod (runs the prod task)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment