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
- Host: GitHub
- URL: https://github.com/anzerr/webpack.external
- Owner: anzerr
- Created: 2020-03-02T14:35:50.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-01-21T16:28:32.000Z (over 4 years ago)
- Last Synced: 2023-03-01T18:06:37.477Z (over 3 years ago)
- Topics: bundle, external, node-module, nodejs, webpack
- Language: JavaScript
- Size: 76.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 '/'
})
```