-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathgruntfile.js
37 lines (34 loc) · 999 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
32
33
34
35
36
37
'use strict';
module.exports = function(grunt) {
//grunt wrapper function
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
copy: {
main: {
files: [{expand: true, flatten: true, src: ['src/**'], dest: 'dist/', filter: 'isFile'}]
}
},
uglify: {
js: {
src: ['./src/mm.angular-fullpage.js'],
dest: './dist/mm.angular-fullpage.min.js'
}
},
cssmin: {
options: {
sourceMap: true
},
target: {
files: {
'./dist/mm.angular-fullpage.min.css': './src/mm.angular-fullpage.css'
}
}
}
});
//load grunt tasks
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin');
//register grunt default task
grunt.registerTask('default', ['copy', 'uglify', 'cssmin']);
}