gulp-named-modules
named a unnamed requirejs module
Install
npm install gulp-named-modules --save-dev
Usage
var gulp = require('gulp'),
named = require('gulp-named-modules');
gulp.task('default', function (fun) {
gulp.src("index.js")
.pipe(named({
baseUrl:"app"
}))
.pipe(gulp.dest('dest'));
});
Options
baseUrl
Type:string
description:the baseUrl configured in requirejs's config.
useUglify
Type:boolean
description:use uglify-js or not
License
MIT