node-import-glob-loader
v0.6.0
Published
webpack loader to load files at once with glob from node_modules folder
Downloads
5
Maintainers
Readme
node-import-glob-loader
webpack loader to load files from node modules at once with glob Source code has been forked from glob-loader to support global loading for files from node_modules
Install
npm install --save-dev node-import-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
node-import-glob-loader
dir.pattern
file
Pattern is relative to the file directory.
./dir/**/*.js
Require patterns
var modules = require("node-import-glob-loader!./dir.pattern");
TODO
- source map