Last active
January 23, 2018 10:21
-
-
Save deanhume/9345019 to your computer and use it in GitHub Desktop.
A simple grunt file for the UnCSS plugin
This file contains 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) { | |
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