ramon18 / gulp-requirejs-bundler

Gulp plugin. Wraps gulp-requirejs and adds the ability to emit bundle files and bundle config.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gulp-requirejs-bundler

A require-bundler plugin for gulp

This FORK improves the original package from Steve Sanderson with compatible to gulp 4

Usage

First, install gulp-requirejs-bundler as a development dependency:

npm install --save-dev gulp-requirejs-bundler

Then, add it to your gulpfile.js:

var require-bundler = require("gulp-requirejs-bundler");

gulp.src("./src/*.ext")
	.pipe(require-bundler({
		msg: "Hello Gulp!"
	}))
	.pipe(gulp.dest("./dist"));

API

require-bundler(options)

options.msg

Type: String
Default: Hello World

TODO: API details to be documented here.

License

MIT License

About

Gulp plugin. Wraps gulp-requirejs and adds the ability to emit bundle files and bundle config.

License:MIT License


Languages

Language:JavaScript 100.0%