-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGruntfile.js
More file actions
46 lines (44 loc) · 1.44 KB
/
Gruntfile.js
File metadata and controls
46 lines (44 loc) · 1.44 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
separator: ";",
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
common: {
src: "web/compiled/common.js",
dest: "web/compiled/common.min.js",
},
extranet: {
src: "web/compiled/extranet.js",
dest: "web/compiled/extranet.min.js",
},
site: {
src: "web/compiled/site.js",
dest: "web/compiled/site.min.js",
},
},
cssmin: {
options: {
mergeIntoShorthands: false,
roundingPrecision: -1
},
extranet: {
files: {
'web/compiled/extranet.min.css': ['web/compiled/extranet.css']
}
},
site: {
files: {
'web/compiled/site.min.css': 'web/compiled/site.css'
}
},
},
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.registerTask("default", ["uglify", "cssmin"]);
grunt.registerTask("extranet", ["uglify:extranet", "cssmin:extranet"]);
grunt.registerTask("site", ["uglify:site", "cssmin:site"]);
};