Created
March 5, 2021 17:28
-
-
Save rririanto/93217abb7073a62a2772f52291348238 to your computer and use it in GitHub Desktop.
Gruntfile.js with gzip
This file contains hidden or 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: [{ | |
nonull: true, | |
src: ['http://localhost:8000/'], | |
dest: 'apps/static/css/styles.css' | |
}] | |
}, | |
options: { | |
ignoreSheets : [/fonts.googleapis/, /cdn.jsdelivr.net/], | |
stylesheets: ['/static/styles/styles.css'], | |
report: 'gzip' | |
} | |
} | |
}); | |
// Load the plugins | |
grunt.loadNpmTasks('grunt-uncss'); | |
// Default tasks. | |
grunt.registerTask('default', ['uncss']); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment