https://github.com/atlassian-labs/webpack-deduplication-plugin
Plugin for webpack that de-duplicates transitive dependencies in yarn and webpack-based projects.
https://github.com/atlassian-labs/webpack-deduplication-plugin
dependencies webpack-plugin webpack4
Last synced: 2 months ago
JSON representation
Plugin for webpack that de-duplicates transitive dependencies in yarn and webpack-based projects.
- Host: GitHub
- URL: https://github.com/atlassian-labs/webpack-deduplication-plugin
- Owner: atlassian-labs
- License: apache-2.0
- Created: 2020-03-23T01:35:15.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-12T03:06:29.000Z (almost 2 years ago)
- Last Synced: 2025-05-08T21:29:04.755Z (2 months ago)
- Topics: dependencies, webpack-plugin, webpack4
- Language: JavaScript
- Homepage:
- Size: 871 KB
- Stars: 76
- Watchers: 5
- Forks: 4
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Webpack Deduplication Plugin
Plugin for webpack that de-duplicates transitive dependencies in yarn and webpack-based projects.
## Usage
Import it from the package
```
const { WebpackDeduplicationPlugin } = require('webpack-deduplication-plugin');
```And add it to your webpack config:
```
plugins: [
new WebpackDeduplicationPlugin({
cacheDir: cacheDirPath,
rootPath: rootPath,
}),
]
```where:
- cacheDirPath - absolute path to the directory where the cache of the duplicates will be stored.
Cache is based on the content of `yarn.lock` file and will be updated with every change.
If not provided then the duplicates will be re-generated with every run.* rootPath - absolute path to the root of the project. If not provided it will be auto-detected
by [`app-root-path`](https://www.npmjs.com/package/app-root-path) plugin## Development
TBD
## Contributions
Contributions to Webpack Deduplication Plugin are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details.
## License
Copyright (c) 2020 Atlassian and others.
Apache 2.0 licensed, see [LICENSE](LICENSE) file.
[](https://www.atlassian.com)