gulp-webpack-glob
v1.0.1
Published
Able to webpack support glob wildcards
Downloads
7
Maintainers
Readme
Gulp Webpack 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