gulp-requirejs-stream
v0.1.5
Published
A stream-friendly AMD(requirejs) optimizer
Downloads
12
Readme
gulp-requirejs-stream
A stream-friendly AMD(requirejs) optimizer
Usage
var requireStream = require('gulp-requirejs-stream');
gulp.task('scripts', function() {
return gulp.src('src/js/**')
.pipe(requireStream({
baseUrl: "./js",
dir: "./optimized",
optimize: "none",
paths: {
"mainApp": "apps/main/index"
},
modules: [
{
name: "mainApp"
}
]
}))
.pipe(gulp.dest('dist/js'));
});