Skip to content

Instantly share code, notes, and snippets.

@jeremyjaymes
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeremyjaymes/8b6a9fd5dcd568a3c875 to your computer and use it in GitHub Desktop.
Save jeremyjaymes/8b6a9fd5dcd568a3c875 to your computer and use it in GitHub Desktop.
Gruntfile.js for Genesis (Replace style.css)
module.exports = function(grunt) {
require('jit-grunt')(grunt);
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
cssmin: {
options: {
shorthandCompacting: false,
roundingPrecision: -1
},
target: {
files: {
'lib/css/main.min.css': 'lib/css/main.css'
}
}
},
uglify: {
my_target: {
files: {
'lib/js/main.min.js': ['lib/js/main.js']
}
}
},
watch: {
css: {
files: ['**/main.css' ],
tasks: ['css'],
},
scripts: {
files: 'lib/js/main.js',
tasks: ['uglify'],
}
}
});
// Register css task.
grunt.registerTask('css', ['cssmin']);
// Default watch
grunt.registerTask('default', ['watch']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment