gulp-eagle-rollup
v1.1.1
Published
A Gulp plugin for Rollup
Downloads
2
Readme
gulp-eagle-rollup
A Gulp plugin for Rollup.
Usage
const gulp = require('gulp');
const eagleRollup = require('gulp-eagle-rollup');
const commonjs = require('rollup-plugin-commonjs');
const nodeResolve = require('rollup-plugin-node-resolve');
const buble = require('rollup-plugin-buble');
gulp.task('default', function () {
return gulp
.src('./test/b.js')
.pipe(eagleRollup({
output: {
format: 'iife'
},
plugins: [
nodeResolve({ browser: true, main: true, jsnext: true }),
commonjs(),
buble()
]
}))
.pipe(gulp.dest('./dist'));
});
Options
eagleRollup(rollupOptions, fileName)
rollupOptions
- the same object asrollup.rollup(options)
. And you can specify rollup byrollupOptions.rollup
.fileName
- a new file name.