Skip to content

Instantly share code, notes, and snippets.

@deanhume
Last active January 23, 2018 10:21
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save deanhume/9345019 to your computer and use it in GitHub Desktop.
Save deanhume/9345019 to your computer and use it in GitHub Desktop.
A simple grunt file for the UnCSS plugin
module.exports = function (grunt) {
grunt.initConfig({
uncss: {
dist: {
files: [
{ src: 'index.html', dest: 'cleancss/tidy.css' }
]
}
},
cssmin: {
dist: {
files: [
{ src: 'cleancss/tidy.css', dest: 'cleancss/tidy.css' }
]
}
}
});
// Load the plugins
grunt.loadNpmTasks('grunt-uncss');
grunt.loadNpmTasks('grunt-contrib-cssmin');
// Default tasks.
grunt.registerTask('default', ['uncss', 'cssmin']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment