gulp-seajs-wrap

0.1.2 • Public • Published

gulp-seajs-wrap

add CMD wrap define(function(require, exports, module) { ... });

Usage

First, install gulp-seajs-wrap as a development dependency:

npm install --save-dev gulp-seajs-wrap

Then, add it to your gulpfile.js:

var seajsWrap = require('gulp-seajs-wrap');

gulp.task('test', function(){
  gulp.src(['js/main.js'])
    .pipe(seajsWrap())
    .pipe(gulp.dest('dist/js/main.js'));
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    1
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i gulp-seajs-wrap

Weekly Downloads

1

Version

0.1.2

License

ISC

Last publish

Collaborators

  • elf-mouse