-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
28 lines (27 loc) · 891 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
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
concat: {
internal: {
src: ["public/assets/js/evemap.js", "public/assets/js/evemap*.js", "!**/build/**"],
dest: "public/assets/js/build/evemap.js"
}
},
uglify: {
js: {
src: "public/assets/js/build/evemap.js",
dest: "public/assets/js/build/evemap.min.js"
}
},
cssmin: {
css: {
src: "public/assets/css/style.css",
dest: "public/assets/css/style.min.css"
}
}
});
grunt.loadNpmTasks("grunt-contrib-concat");
grunt.loadNpmTasks("grunt-contrib-uglify");
grunt.loadNpmTasks("grunt-css");
grunt.registerTask("default", ["concat", "uglify", "cssmin"]);
};