Created
October 25, 2013 09:13
-
-
Save Haraldson/7151886 to your computer and use it in GitHub Desktop.
Basic watch › sass
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) | |
{ | |
grunt.initConfig( | |
{ | |
pkg: grunt.file.readJSON('package.json'), | |
watch: { | |
css: { | |
files: [ | |
'www/assets/css/sass/*.scss', | |
'www/assets/css/sass/*/*.scss', | |
'www/assets/css/sass/*/*/*.scss', | |
'www/assets/css/sass/*/*/*/*.scss', | |
'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']); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment