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 () {
|
gulp.task(function buildEs6 () {
|
||||||
return src('**/*.js')
|
return src('**/*.js')
|
||||||
.pipe(sourceMaps.init())
|
.pipe(sourceMaps.init())
|
||||||
.pipe(babel({
|
.pipe(babel())
|
||||||
compact: PRODUCTION,
|
|
||||||
comments: false,
|
|
||||||
optional: [
|
|
||||||
'es7.asyncFunctions',
|
|
||||||
'es7.decorators',
|
|
||||||
'runtime'
|
|
||||||
]
|
|
||||||
}))
|
|
||||||
.pipe(sourceMaps.write('.'))
|
.pipe(sourceMaps.write('.'))
|
||||||
.pipe(gulp.dest(DIST_DIR))
|
.pipe(gulp.dest(DIST_DIR))
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user