js-dxtools / js-dxtools/webpack-validator
Strict mode - Detect duplicate UglifyPlugin
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 290
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
Just saw a case where a user was using -p and UglifyPlugin separately. Latter was used to set compress['drop_console']. The problem is that this will lead to double minification and it won't work as you might expect.
It would be good to be able to detect this case. Perhaps the same applies to some other plugins as well, but this would be a nice starting point.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how webpack-validator handles the -p option and UglifyPlugin in webpack configurations. Implement detection for using both together and define a validation result that makes the duplicate minification issue clear; consider whether the same approach applies to other plugins.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, webpack
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100