Read this issue : shama/webpack-stream#54
Just add a glob on the gulp-webpack entry.
Able to webpack support glob wildcards
npm install gulp-webpack-glob
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