Skip to content

webcaetano/gulp-webpack-glob

Repository files navigation

Build Status npm version

** This repo are not working **

Read this issue : shama/webpack-stream#54

Just add a glob on the gulp-webpack entry.

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

About

Able webpack to support glob wildcards.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published