npm

npm’s 2019 JavaScript ecosystem survey analysis is now available!Get your copy here »

gulp-requirejs-transformconfig

0.1.0 • Public • Published

gulp-requirejs-transformconfig

Gulp plugin for transforming requirejs configs.

Installation

Install package with NPM and add it to your development dependencies:

npm install gulp-requirejs-transformconfig --save-dev

Usage

var requireJsTransformConfig = require('gulp-requirejs-transformconfig');
 
gulp.task('transform-config', function() {
  return gulp.src('path/to/config.js')
    .pipe(requireJsTransformConfig(function(config) {
        config.map = {
            '*': {
                'foo-module': 'bar-module'
            }
        };
        return config;
    })
    .pipe(gulp.dest('path/to/dist'));
});

install

npm i gulp-requirejs-transformconfig

Downloadsweekly downloads

4

version

0.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability