With Grunt
npm install grunt-purgecss --save-devgrunt.loadNpmTasks('grunt-purgecss');The "purgecss" task
Overview
grunt.initConfig({
purgecss: {
my_target: {
options: {
content: ['./src/**/*.html']
},
files: {
'dist/app.css': ['src/css/app.css']
}
}
}
});Options
options.content
options.extractors
options.whitelist
options.whitelistPatterns
options.keyframes
options.fontFace
Usage Examples
Last updated