Skip to content

Commit

Permalink
Merge pull request #40 from webpack-contrib/d3viant0ne-JSFMaintainers
Browse files Browse the repository at this point in the history
docs(readme): updates for JSF maintainers
  • Loading branch information
joshwiens committed Feb 21, 2017
2 parents 1867023 + cac3c87 commit 0e14835
Showing 1 changed file with 63 additions and 10 deletions.
73 changes: 63 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
# imports loader for webpack

The imports loader allows you to use modules that depend on specific global variables.
[![npm][npm]][npm-url]
[![deps][deps]][deps-url]
[![test][test]][test-url]
[![chat][chat]][chat-url]

<div align="center">
<!-- replace with accurate logo e.g from https://worldvectorlogo.com/ -->
<a href="https://github.com/webpack/webpack">
<img width="200" height="200" vspace="" hspace="25"
src="https://cdn.rawgit.com/webpack/media/e7485eb2/logo/icon.svg">
</a>
<h1>Imports Loader</h1>
<p>The imports loader allows you to use modules that depend on specific global variables.<p>
</div>

This is useful for third-party modules that rely on global variables like `$` or `this` being the `window` object. The imports loader can add the necessary `require('whatever')` calls, so those modules work with webpack.

## Installation
<h2 align="center">Install</h2>

```
```bash
npm install imports-loader
```

## Usage
<h2 align="center">Usage</h2>

Given you have this file `example.js`

Expand Down Expand Up @@ -66,7 +77,7 @@ module.exports = {

[Documentation: Using loaders](http://webpack.github.io/docs/using-loaders.html)

## Typical use-cases
<h2 align="center">Typical Use Cases</h2>

### jQuery plugins

Expand All @@ -88,6 +99,48 @@ imports-loader?define=>false
For further hints on compatibility issues, check out [Shimming Modules](http://webpack.github.io/docs/shimming-modules.html) of the official docs.
## License
MIT (http://www.opensource.org/licenses/mit-license.php)
<h2 align="center">Maintainers</h2>
<table>
<tbody>
<tr>
<td align="center">
<img width="150" height="150"
src="https://avatars3.githubusercontent.com/u/166921?v=3&s=150">
</br>
<a href="https://github.com/bebraw">Juho Vepsäläinen</a>
</td>
<td align="center">
<img width="150" height="150"
src="https://avatars2.githubusercontent.com/u/8420490?v=3&s=150">
</br>
<a href="https://github.com/d3viant0ne">Joshua Wiens</a>
</td>
<td align="center">
<img width="150" height="150"
src="https://avatars3.githubusercontent.com/u/533616?v=3&s=150">
</br>
<a href="https://github.com/SpaceK33z">Kees Kluskens</a>
</td>
<td align="center">
<img width="150" height="150"
src="https://avatars3.githubusercontent.com/u/3408176?v=3&s=150">
</br>
<a href="https://github.com/TheLarkInn">Sean Larkin</a>
</td>
</tr>
<tbody>
</table>
[npm]: https://img.shields.io/npm/v/imports-loader.svg
[npm-url]: https://npmjs.com/package/imports-loader
[deps]: https://david-dm.org/webpack-contrib/imports-loader.svg
[deps-url]: https://david-dm.org/webpack-contrib/imports-loader
[chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg
[chat-url]: https://gitter.im/webpack/webpack
[test]: http://img.shields.io/travis/webpack-contrib/imports-loader.svg
[test-url]: https://travis-ci.org/webpack-contrib/imports-loader

0 comments on commit 0e14835

Please sign in to comment.