This repository has been archived by the owner on May 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GruntFile.js
73 lines (71 loc) · 1.78 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
module.exports = function(grunt) {
// Initialize configuration file
grunt.initConfig({
uglify: {
plugins: {
options: {
sourceMap: false,
sourceMapIncludeSources: true,
mangle: true,
beautify: false,
compress: true
},
files: {
'js/plugins.min.js': [
"js/fancybox/jquery.fancybox.js",
"js/totop/jquery.ui.totop.js",
"js/scrollbar/jquery.mCustomScrollbar.concat.min.js",
"js/scrollbar/jquery.nicescroll.js",
"js/flickr/jflickrfeed.min.js",
"js/carousel/carousel.js",
"js/nav/tinynav.js",
"js/nav/superfish.js",
"js/smooth-scroll.js",
"js/bootstrap.js",
"js/moment.js",
"js/knockout.js",
"js/jquery-func.js",
"js/modernizr.js"
]
}
}
},
cssmin: {
combine: {
files: {
'css/style.min.css': [
"css/bootstrap/bootstrap.css",
"css/bootstrap/bootstrap-theme.css",
"js/fancybox/jquery.fancybox.css",
"css/scrollbar/jquery.mCustomScrollbar.css",
"css/hover/style.css",
"css/carousel/carousel.css",
"css/carousel/owl.theme.css",
"css/animations/animate.css",
"css/transitions.css",
"css/flickr/flickr.css",
"css/skins/theme-options.css",
"css/video/video.css",
"css/style.css"
]
}
}
},
htmlmin: {
dist: { // Target
options: { // Target options
removeComments: true,
collapseWhitespace: true
},
files: { // Dictionary of files
'index.html': 'index.src.html', // 'destination': 'source'
}
}
}
});
// Load our npm grunt tasks
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-htmlmin');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.registerTask('build', ['uglify:plugins', 'cssmin', 'htmlmin:dist'])
};