Skip to content

Instantly share code, notes, and snippets.

@joeldbirch
Created May 5, 2013 04:18
Show Gist options
  • Save joeldbirch/5519676 to your computer and use it in GitHub Desktop.
Save joeldbirch/5519676 to your computer and use it in GitHub Desktop.
Getting grunt to livereload the page when Compass Sass files change.
'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