-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgruntfile.js
More file actions
25 lines (22 loc) · 797 Bytes
/
gruntfile.js
File metadata and controls
25 lines (22 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
module.exports = function(grunt) {
grunt.initConfig({
uncss: {
dist: {
files: [{
nonull: true,
src: ['http://localhost:8000/', 'http://localhost:8000/login', 'http://localhost:8000/dashboard', 'http://127.0.0.1:8000/general-info/1/update/'],
dest: 'build/static/build/grunt.css'
}]
},
options: {
ignoreSheets : [/fonts.googleapis/, /cdn.jsdelivr.net/],
stylesheets: ['/static/build/style.css', '/static/build/bootstrap/css/bootstrap.css'],
report: 'gzip'
}
},
});
// Load the plugins
grunt.loadNpmTasks('grunt-uncss');
// Default tasks.
grunt.registerTask('default', ['uncss']);
};