Skip to content

Instantly share code, notes, and snippets.

@Haraldson
Created September 4, 2013 07:53
Show Gist options
  • Select an option

  • Save Haraldson/6433938 to your computer and use it in GitHub Desktop.

Select an option

Save Haraldson/6433938 to your computer and use it in GitHub Desktop.
SASS watch.
module.exports = function(grunt)
{
grunt.initConfig(
{
pkg: grunt.file.readJSON('package.json'),
watch: {
css: {
files: ['www/assets/css/sass/*.scss'],
tasks: ['sass']
}
},
sass: {
dist: {
files: {
'www/assets/css/admin-interface.css': 'www/assets/css/sass/admin-interface.scss'
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-sass');
grunt.registerTask('default', ['watch']);
};
{
"name": "foo",
"version": "0.1.0",
"devDependencies": {
"grunt": "~0.4.1",
"grunt-sass": "~0.6.1",
"grunt-contrib-watch": "~0.5.3"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment