Skip to content

Instantly share code, notes, and snippets.

@MervinPraison
Created June 23, 2017 15:08
Show Gist options
  • Select an option

  • Save MervinPraison/4ea797ac3cbd572c7f76fcf905b4addf to your computer and use it in GitHub Desktop.

Select an option

Save MervinPraison/4ea797ac3cbd572c7f76fcf905b4addf to your computer and use it in GitHub Desktop.
Grunt Minify and Combine CSS
module.exports = function(grunt) {
grunt.initConfig({
cssmin: {
target: {
files: [{
expand: true,
cwd: 'release/css',
src: ['*.css', '!*.min.css'],
dest: 'release/css',
ext: '.min.css'
}]
}
}
});
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.registerTask('default', ["cssmin"]);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment