-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathGruntfile.cjs
More file actions
31 lines (29 loc) · 776 Bytes
/
Gruntfile.cjs
File metadata and controls
31 lines (29 loc) · 776 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
module.exports = function (grunt) {
grunt.initConfig({
uglify: {
options: {
sourceMap: true
},
my_target: {
files: [{
expand: true,
cwd: 'amd/src',
src: ['**/*.js'],
dest: 'amd/build',
ext: '.min.js'
}]
}
},
copy: {
main: {
expand: true,
cwd: 'amd/src',
src: ['**/*.js'],
dest: 'amd/build'
}
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.registerTask('default', ['uglify', 'copy']);
};