Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/seanchas116/glob-loader
webpack loader to load files at once with glob
https://github.com/seanchas116/glob-loader
Last synced: 4 days ago
JSON representation
webpack loader to load files at once with glob
- Host: GitHub
- URL: https://github.com/seanchas116/glob-loader
- Owner: seanchas116
- License: mit
- Created: 2015-06-05T05:49:53.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-20T11:56:54.000Z (about 8 years ago)
- Last Synced: 2024-11-03T01:03:42.877Z (10 days ago)
- Language: JavaScript
- Homepage:
- Size: 17.6 KB
- Stars: 15
- Watchers: 3
- Forks: 12
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# glob-loader [![npm version](https://badge.fury.io/js/glob-loader.svg)](http://badge.fury.io/js/glob-loader)
webpack loader to load files at once with glob[![Build Status](https://travis-ci.org/seanchas116/glob-loader.svg?branch=master)](https://travis-ci.org/seanchas116/glob-loader)
## 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
```js
var modules = require("glob-loader!./dir.pattern");
```## TODO
* source map