Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including gulp-requirejs-transformconfig with all npm packages installed. Try it out:

var gulpRequirejsTransformconfig = require("gulp-requirejs-transformconfig")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

gulp-requirejs-transformconfig v0.1.0

A gulp plugin to transform your require.js config

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'));
});
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free