Created
May 5, 2013 04:18
-
-
Save joeldbirch/5519676 to your computer and use it in GitHub Desktop.
Getting grunt to livereload the page when Compass Sass files change.
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
'use strict' | |
module.exports = (grunt) -> | |
# Project configuration. | |
grunt.initConfig | |
# Task configuration. | |
compass: | |
options: | |
sassDir: 'src/sass' | |
cssDir: 'src/css' | |
raw: 'preferred_syntax = :sass\n' | |
watch: | |
options: | |
livereload: true | |
compass: | |
files: ['src/**/*.sass'] | |
tasks: ['compass'] | |
# These plugins provide necessary tasks. | |
grunt.loadNpmTasks('grunt-contrib-watch') | |
grunt.loadNpmTasks('grunt-contrib-compass') | |
# Default task. | |
grunt.registerTask('default', ['compass']) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment