@renbaoshuo/gulp-babel-inline
v0.0.1
Published
Gulp plugin to transpile inline javascript via babel.
Downloads
2
Readme
gulp-babel-inline
Issues with the output should be reported in Babel repository.
Install
npm install @renbaoshuo/gulp-babel-inline
# or use yarn: yarn add @renbaoshuo/gulp-babel-inline
Usage
const gulp = require('gulp');
const babelInline = require('@renbaoshuo/gulp-babel-inline');
gulp.task('default', () =>
gulp.src('src/**/*.html')
.pipe(babelInline({
presets: ['@babel/preset-env']
}))
.pipe(gulp.dest('dist'))
);
Author
gulp-babel-inline © Baoshuo, Released under the MIT License.
Authored and maintained by Baoshuo with help from contributors.
Personal Website · Blog · GitHub @renbaoshuo · Twitter @renbaoshuo