@ricardo-tobon/glob-loader

0.4.0 • Public • Published

@nas-user/glob-loader

webpack loader to load files at once with glob

Install

npm install --save-dev @nas-user/glob-loader

Repository

Change: export object instead of an array

https://github.com/Graf009/glob-loader.git

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

Readme

Keywords

Package Sidebar

Install

npm i @ricardo-tobon/glob-loader

Weekly Downloads

0

Version

0.4.0

License

MIT

Unpacked Size

3.41 kB

Total Files

4

Last publish

Collaborators

  • ricardo-tobon