Created
April 22, 2013 10:49
-
-
Save lmartins/5433896 to your computer and use it in GitHub Desktop.
Gruntfile to explain issue with Sprites being generated by grunt-contrib-compass
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) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
regarde: { | |
txt: { | |
files: ['css-src/**/*.scss'], | |
tasks: ['compass'] | |
}, | |
css: { | |
files: ['css/**/*.css'], | |
tasks: ['livereload'] | |
}, | |
tpl: { | |
files: ['style-guide/**/*.html', 'views/**/*.php'], | |
tasks: ['livereload'] | |
} | |
}, | |
compass: { | |
dist: { | |
options: { | |
sassDir: 'css-src/', | |
cssDir: 'css/', | |
environment: 'production' | |
} | |
} | |
} | |
}); | |
// These plugins provide necessary tasks. | |
grunt.loadNpmTasks('grunt-regarde'); | |
grunt.loadNpmTasks('grunt-contrib-livereload'); | |
grunt.loadNpmTasks('grunt-contrib-compass'); | |
// grunt.loadNpmTasks('grunt-notify'); | |
// Default task. | |
grunt.registerTask('default', [ | |
'livereload-start', | |
'regarde' | |
]); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment