Last active
August 29, 2015 14:17
-
-
Save dimitrov/2377d2c3901b129f67a3 to your computer and use it in GitHub Desktop.
grunt-sass + grunt-contrib-watch
This file contains 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'), | |
sass: { | |
options: { | |
sourceMap: true | |
}, | |
dist: { | |
files: { | |
'styles/css/widgets.css': 'styles/sass/widgets.scss' | |
} | |
} | |
}, | |
watch: { | |
sass: { | |
files: ['styles/sass/*.scss'], | |
tasks: ['sass:dist'], | |
}, | |
livereload: { | |
options: { livereload: true }, | |
files: ['styles/css/*.css', '*.html'], | |
}, | |
}, | |
}); | |
grunt.loadNpmTasks('grunt-sass'); | |
grunt.loadNpmTasks('grunt-contrib-watch'); | |
grunt.registerTask('default', ['sass:dist', 'watch']); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment