forked from Starcounter-Jack/JSON-Patch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgruntfile.js
28 lines (27 loc) · 802 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({
uglify: {
options: {
beautify: {
ascii_only: true,
},
sourceMap: true,
sourceMapIncludeSources: true,
preserveComments: "some"
},
default: {
files: [
{
expand: true, // Enable dynamic expansion.
cwd: 'src/', // Src matches are relative to this path.
src: ['json-*.js'], // Actual pattern(s) to match.
dest: 'dist/', // Destination path prefix.
ext: '.min.js', // Dest filepaths will have this extension.
extDot: 'first' // Extensions in filenames begin after the first dot
},
]
}
},
});
grunt.loadNpmTasks('grunt-contrib-uglify');
};