An open API service indexing awesome lists of open source software.

https://github.com/anzerr/webpack.external


https://github.com/anzerr/webpack.external

bundle external node-module nodejs webpack

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

          

### `Intro`
Removes node_modules from webpack bundle.

#### `Install`
``` bash
npm install --save git+https://git@github.com/anzerr/webpack.external.git
```

### `Example`
``` javascript
const externals = require('webpack.external');

module.exports = {
target: 'node',
externals: [externals()]
};
```

``` javascript
const externals = require('webpack.external');
externals({
whitelist: [ // these should be bundled
'@user/core',
'@user/domain'
],
modulesRecursive: true // load all node_modules found all the way back to root '/'
})
```