gulp-colac
v0.1.5
Published
My dazzling gulp plugin
Downloads
2
Readme
gulp-colac
gulp plugin for cola
the plugin do 3 things:
- parse dependent modules, and add
define wrap
to module files - parse dependent modules for files which using
cola.use
- order output stream: put file to last positoin which contains
cola.use
Install
$ npm install --save-dev gulp-colac
Usage
var gulp = require('gulp');
var colac = require('gulp-colac');
gulp.task('default', function () {
return gulp.src('src/file.ext')
.pipe(colac())
.pipe(gulp.dest('dist'));
});
API
colac(options)
options
relativePath
Type: String
Default: null
ignore relativePath
when using file path
to generate module id.
License
MIT © creep