spa-demo/gulpfile.js

20 lines
375 B
JavaScript
Raw Normal View History

const gulp = require('gulp')
const concat = require('gulp-concat')
const babel = require('gulp-babel')
function defaultTask(cb) {
cb()
}
function build(callback) {
gulp.src('src/**/*.js', { sourcemaps: true})
.pipe(babel())
.pipe(concat('bundle.js'))
.pipe(gulp.dest('dist/'), { sourcemaps: '.'})
callback()
}
exports.build = build
exports.default = defaultTask