https://github.com/mattlewis92/webpack-angular-externals
A tiny utility to prevent webpack bundling @angular dependencies in your library code
https://github.com/mattlewis92/webpack-angular-externals
angular webpack
Last synced: 8 months ago
JSON representation
A tiny utility to prevent webpack bundling @angular dependencies in your library code
- Host: GitHub
- URL: https://github.com/mattlewis92/webpack-angular-externals
- Owner: mattlewis92
- License: mit
- Created: 2017-02-10T18:05:16.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-10T19:18:40.000Z (about 9 years ago)
- Last Synced: 2024-12-12T08:12:17.384Z (over 1 year ago)
- Topics: angular, webpack
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webpack-angular-externals
[](https://travis-ci.org/mattlewis92/webpack-angular-externals)
[](https://codecov.io/gh/mattlewis92/webpack-angular-externals)
> A tiny utility to prevent webpack bundling @angular dependencies in your library code
## Installation
```bash
npm install webpack-angular-externals --save-dev
```
## Usage
```js
// webpack.config.js
const webpackAngularExternals = require('webpack-angular-externals');
module.exports = {
// rest of config here
externals: [
webpackAngularExternals(),
{
'another-external-lib': {
root: ['anotherExternalLib'],
commonjs: 'another-external-lib',
commonjs2: 'another-external-lib',
amd: 'another-external-lib'
}
}
]
};
```
## License
MIT