Skip to content

Instantly share code, notes, and snippets.

@lmartins
Created April 22, 2013 10:49
Show Gist options
  • Save lmartins/5433896 to your computer and use it in GitHub Desktop.
Save lmartins/5433896 to your computer and use it in GitHub Desktop.
Gruntfile to explain issue with Sprites being generated by grunt-contrib-compass
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