Closed fregante closed 7 years ago
const rollup = require('gulp-rollup'); const resolve = require('rollup-plugin-node-resolve'); gulp.task('rollup', function () { return gulp.src('_01_src/js/form/*.js') .pipe(rollup({ entry: '_01_src/js/form/controller.js', format: 'iife', plugins: [ resolve({ jsnext: true, main: true, browser: true }) ] }) ) .pipe(gulp.dest('_02_build/js/')); });