webpack loader to load files at once with glob
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 3 commits ahead, 16 commits behind seanchas116:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

glob-loader npm version

webpack loader to load files at once with glob

Build Status

Install

npm install --save-dev glob-loader

Use

  • Create a glob pattern file (example: dir.pattern)
  • Write the pattern of the files that you want to require
  • Require it with glob-loader

dir.pattern file

Pattern is relative to the file directory.

./dir/**/*.js

Require patterns

var modules = require("glob-loader!./dir.pattern");

TODO

  • source map