Skip to content

gulp-flow/gulp-flow-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-flow-js

JS bundle for gulp-flow.

See also gulp-flow-webpack.

Requirements

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 Tallefourtane - Nicolab.net
Nicolas Talle
Make a donation via Paypal