gulp-requirer

0.1.1 • Public • Published

gulp-requirer

Install

$ npm install --save-dev gulp-requirer

Usage

var gulp = require('gulp');
var requirer = require('gulp-requirer');

gulp.task('default', function () {
  return gulp.src('src/**/*.js')
    .pipe(requirer('all.js', 'boot'))
    .pipe(gulp.dest('dist'));
});

Compression

var gulp = require('gulp');
var requirer = require('gulp-requirer');

gulp.task('default', function () {
  return gulp.src('src/**/*.js')
    .pipe(requirer('all.js', 'boot'))
    .pipe(requirer.compress()) // compress module names
    .pipe(gulp.dest('dist'));
});

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i gulp-requirer

    Weekly Downloads

    0

    Version

    0.1.1

    License

    none

    Last publish

    Collaborators

    • ooflorent