gulp-webpack-glob

1.0.1 • Public • Published

Build Status npm version

Gulp Webpack Glob

glob

Able to webpack support glob wildcards

Install

npm install gulp-webpack-glob

Usage

var webpackGlob = require('gulp-webpack-glob');
 
gulp.src('test/test1/index.js')
        .pipe(webpackGlob())
 
// before
 
'use strict';
 
import './lib/*.js';
import utils from './utils.js';
 
 
// after
import './lib/foo.js';
import './lib/bar.js';
import utils from './utils.js';
 

Or with Filename as var

// before
 
'use strict';
 
import * './lib/*.js';
import utils from './utils.js';
 
 
// after
import foo './lib/foo.js';
import bar './lib/bar.js';
import utils from './utils.js';

The MIT License

Package Sidebar

Install

npm i gulp-webpack-glob

Weekly Downloads

3

Version

1.0.1

License

MIT

Last publish

Collaborators

  • webcaetano