Skip to content

Instantly share code, notes, and snippets.

@tojibon
Created September 12, 2015 19:18
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 tojibon/2f3fff1d9299e71883b9 to your computer and use it in GitHub Desktop.
Save tojibon/2f3fff1d9299e71883b9 to your computer and use it in GitHub Desktop.
Grunt CSS Minify Example
module.exports = function(grunt){
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
cssmin: {
my_target: {
files: [{
expand: true,
cwd: 'css/',
src: ['*.css', '!*.min.css'],
dest: 'css/',
ext:'.min.css'
}]
}
}
});
grunt.loadNpmTasks('grunt-contrib-cssmin');
};
{
"name": "grunt",
"version": "1.0.0",
"devDependencies": {
"grunt-contrib-cssmin": "^0.13.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment