-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathGruntfile.js
41 lines (34 loc) · 980 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
38
39
40
41
module.exports = function(grunt) {
'use strict';
require('load-grunt-tasks')(grunt);
var babelify = require('babelify');
grunt.initConfig({
'babel': {
options: {
sourceMap: true
},
dist: {
files: {
'dist/main.js': 'src/main.js'
}
}
},
browserify: {
dist: {
files: {
'dist/main.js': ['src/**/*.js'],
},
options: {
//"transform": [["babelify", { "optional": ["es7.asyncFunctions"], sourceMap: true }]]
transform: [
babelify.configure({
stage: 0,
sourceMaps: 'inline'
})
]
}
}
}
});
grunt.registerTask('default', ['browserify']);
};