gulp-flow-js
v1.1.1
Published
JS bundle for gulp-flow.
Downloads
6
Maintainers
Readme
gulp-flow-js
JS bundle for gulp-flow.
See also gulp-flow-webpack.
Requirements
- gulp-flow must be installed.
Install
npm install --save-dev gulp-flow-js
Usage
This bundle is preconfigured in cfg.js
.
gulp-flow-js
adds:
gp.uglify()
(gulp-uglify)pipes.jsMin()
Task
A simple example:
gulpfile.js
let gulp = require('gulp');
let flow = require('gulp-flow');
let {cfg, pipes} = flow;
// load (custom) webpack bundle
require('gulp-flow-js');
gulp.task('build.js', function() {
return gulp.src('src/**/*.js')
.pipe(pipes.jsMin())
.pipe(gulp.dest(cfg.publicJsDir))
;
});
And run your task: gulp build.js
LICENSE
MIT (c) 2016, Nicolas Tallefourtane.
Author
| | |---| | Nicolas Talle | | |