gulp-named-modules

0.0.3 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i gulp-named-modules

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • yangjiyuan