gulp-requirejs-bundle
Information
A small, simply, very easy wrapper around the require.js optimizer to work with gulp.js with bundling support.
Package | gulp-requirejs-bundle |
Description | uses require.js's r.js optimizer to combine require.js AMD modules into one file |
Node Version | 0.10 |
Installation
Simply add gulp-requirejs-bundle
as a dev-dependency in your package.json or run
$ npm install --save-dev gulp-requirejs-bundle
Usage
var gulp = rjs = ; gulp;
Error handling
gulp-requirejs-bundle will emit errors when you don't pass an options object and if the baseUrl
or out
properties are undefined.
The requiere.js optimizer itself might also emit errors; unfortunately there's no way of catching them elegantly at the moment.
Options
The options object supports the same parameters as the require.js optimizer.