npm install --save-dev babel-core npm install --save-dev gulp-babel babel-preset-env
--gulpfile.js //ES6語法 編譯 gulp.task('es6', () => gulp.src('src/app.js') .pipe(babel({ presets: ['env'] })) .pipe(gulp.dest('dist')) );
gulp es6