External Babel configuration.
This commit is contained in:
parent
0253031d7f
commit
3df973a1ea
12
.babelrc
Normal file
12
.babelrc
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"comments": false,
|
||||
"compact": true,
|
||||
"optional": [
|
||||
"es7.asyncFunctions",
|
||||
"es7.decorators",
|
||||
"es7.functionBind",
|
||||
"minification.deadCodeElimination",
|
||||
"minification.inlineExpressions",
|
||||
"runtime"
|
||||
]
|
||||
}
|
10
gulpfile.js
10
gulpfile.js
@ -49,15 +49,7 @@ gulp.task(function buildCoffee () {
|
||||
gulp.task(function buildEs6 () {
|
||||
return src('**/*.js')
|
||||
.pipe(sourceMaps.init())
|
||||
.pipe(babel({
|
||||
compact: PRODUCTION,
|
||||
comments: false,
|
||||
optional: [
|
||||
'es7.asyncFunctions',
|
||||
'es7.decorators',
|
||||
'runtime'
|
||||
]
|
||||
}))
|
||||
.pipe(babel())
|
||||
.pipe(sourceMaps.write('.'))
|
||||
.pipe(gulp.dest(DIST_DIR))
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user