forked from Whiteboard/wampy-cra
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gruntfile.js
35 lines (32 loc) · 866 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
module.exports = function (grunt) {
require('load-grunt-tasks')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
compress: {
drop_console: true
},
preserveComments: false,
sourceMap: true
},
default: {
files: {
'build/wampy-cra.min.js': ['build/wampy-cra.js']
}
}
},
babel: {
options: {
sourceMap: true,
presets: ['es2015']
},
dist: {
files: {
'build/wampy-cra.js': 'src/wampy-cra.js'
}
}
}
});
grunt.registerTask('default', ['babel', 'uglify']);
};