Last active
August 29, 2015 14:21
-
-
Save jeremyjaymes/8b6a9fd5dcd568a3c875 to your computer and use it in GitHub Desktop.
Gruntfile.js for Genesis (Replace style.css)
This file contains hidden or 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) { | |
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