gulp-requirejs-optimize icon indicating copy to clipboard operation
gulp-requirejs-optimize copied to clipboard

How to bundle all modules into single file with one top level wrapper.

Open sohankd opened this issue 6 years ago • 0 comments

I want to optimie all the modules into one singel file and a wrap over it.But its not doing that. Here is the code.

`var gulp = require('gulp') var requirejsOptimize = require('gulp-requirejs-optimize')

gulp.task('default', function () { return gulp.src('src/**/*.js') .pipe(requirejsOptimize()) .pipe(gulp.dest('build')) })`

When i run the above task, it generates all files inidividually as they being assigned to requirejsOptimize() by gulp.src. If i use option 'warp: true', it wraps very file. So i want all those files to be in a single file with only single wrap over it. How can i do that ? Thanks

sohankd avatar Oct 21 '19 09:10 sohankd