Skip to content

Instantly share code, notes, and snippets.

@theonicolaou
Created December 23, 2014 13:55
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 theonicolaou/0b53dc3f47f352e1c228 to your computer and use it in GitHub Desktop.
Save theonicolaou/0b53dc3f47f352e1c228 to your computer and use it in GitHub Desktop.
Updated version of my Gruntfile (refactor part 2)
module.exports = function (grunt) {
grunt.initConfig({
sass: {
dist: {
files: {
'css/tn.css': 'scss/tn.scss'
},
options: {
sourcemap: 'none'
},
}
},
watch: {
sass: {
files: ['scss/*/*.scss'],
tasks: ['sass'],
},
},
notify_hooks: {
options: {
enabled: true,
title: "Grunt tasks completed",
success: true,
duration: 5
}
}
});
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-notify');
grunt.registerTask('default', ['sass', 'watch']);
grunt.task.run('notify_hooks');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment