[![npm][npm]][npm-url]
[![node][node]][node-url]
[![deps][deps]][deps-url]
[![chat][chat]][chat-url]
Script Loader
Install
```bash
npm install --save-dev script-loader
```
Usage
Executes JS script once in global context.
> :warning: Doesn't work in NodeJS
### Config (recommended)
```js
import exec from 'script.exec.js';
```
**webpack.config.js**
```js
module.exports = {
module: {
rules: [
{
test: /\.exec\.js$/,
use: [ 'script-loader' ]
}
]
}
}
```
### Inline
```js
import exec from 'script-loader!./script.js';
```
Maintainers
[npm]: https://img.shields.io/npm/v/script-loader.svg
[npm-url]: https://npmjs.com/package/script-loader
[node]: https://img.shields.io/node/v/script-loader.svg
[node-url]: https://nodejs.org
[deps]: https://david-dm.org/webpack/script-loader.svg
[deps-url]: https://david-dm.org/webpack/script-loader
[chat]: https://badges.gitter.im/webpack/webpack.svg
[chat-url]: https://gitter.im/webpack/webpack