-
Notifications
You must be signed in to change notification settings - Fork 7
/
Gruntfile.js
31 lines (26 loc) · 907 Bytes
/
Gruntfile.js
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
26
27
28
29
30
31
/* global module:false */
module.exports = function(grunt) {
// Project configuration
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
meta: {},
'closure-compiler': {
"build": {
closurePath: '../closure-compiler/',
js: 'critical-css-widget.js',
jsOutputFile: './critical-css-widget.min.js',
noreport: true,
maxBuffer: 500,
options: {
compilation_level: 'ADVANCED_OPTIMIZATIONS',
language_in: 'ECMASCRIPT5_STRICT',
externs: ['externs.js']
}
}
}
});
// Load Dependencies
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.registerTask('build', ['closure-compiler']);
grunt.registerTask('default', ['build']);
};