gulp-webpack-bundle-tracker

1.0.2 • Public • Published

gulp-webpack-bundle-tracker

A Gulp plugin for generating a JSON file similar to webpack-bundle-tracker.

Inspired by gulp-json-hash-manifest.

Installation

npm install gulp-webpack-bundle-tracker --save-dev

Usage

var named = require('vinyl-named');
var path = require('path');
var bundles = require('gulp-webpack-bundle-tracker');

gulp.task('compile', function(callback) {
    return gulp.src('js/*.js')
        // other plugins here...
        .pipe(named(function(file) {
            // use the first portion of the filename as the bundle name
            return path.basename(file.path).split('.')[0]
        }))
        .pipe(bundles())
});

Options

  • dest - string
    The destination directory of the hash manifest file.
    Default: process.cwd() (the current working directory)

  • filename - string
    The filename of the stats manifest file.
    Default: webpack-stats.json

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.20latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.20
1.0.10

Package Sidebar

Install

npm i gulp-webpack-bundle-tracker

Weekly Downloads

0

Version

1.0.2

License

none

Last publish

Collaborators

  • fcurella