JS bundle for gulp-flow.
See also gulp-flow-webpack.
- gulp-flow must be installed.
npm install --save-dev gulp-flow-js
This bundle is preconfigured in cfg.js
.
gulp-flow-js
adds:
gp.uglify()
(gulp-uglify)pipes.jsMin()
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
MIT (c) 2016, Nicolas Tallefourtane.
Nicolas Talle |