Last active
March 5, 2021 17:35
-
-
Save rririanto/4d4c94a2ef32c1312257c534ec876744 to your computer and use it in GitHub Desktop.
Uncss Gruntfile
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'], | |
} | |
} | |
}); | |
// 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