Skip to content
Gulp plugin for transforming requirejs configs.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.gitignore
LICENSE Initial commit Aug 3, 2016
README.md Set js as language for the usage code snippet in README. Aug 3, 2016
index.js
package.json

README.md

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'));
});
You can’t perform that action at this time.