webpack loader to load files at once with glob
JavaScript
Switch branches/tags
Nothing to show
Clone or download
seanchas116 Merge pull request #6 from joscha/fix-dependencies
Cleanup dependencies, add caching, test more node envs, some features
Latest commit a334aa3 Sep 20, 2016

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