-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGruntfile.js
More file actions
46 lines (37 loc) · 921 Bytes
/
Gruntfile.js
File metadata and controls
46 lines (37 loc) · 921 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
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) {
// do 'grunt build' to package source files into a zip and add the artifact to Nexus
grunt.registerTask("build", ["cssmin", "uglify"]);
// retrieve package information, version #'s, deploy locations, etc.
var pkg = grunt.file.readJSON('package.json');
grunt.initConfig({
cssmin: {
options: {
shorthandCompacting: false,
roundingPrecision: -1
},
target: {
files: {
// if you want to concat mutliple scripts, do that here.
"scrollpoint.jquery.min.css": [
"scrollpoint.jquery.css"
]
}
}
},
uglify: {
options: {
mangle: false
},
my_target: {
files: {
// if you want to concat mutliple scripts, do that here.
"scrollpoint.jquery.min.js": [
"scrollpoint.jquery.js"
]
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-uglify');;
};