-
-
Notifications
You must be signed in to change notification settings - Fork 163
Open
Description
- webpack Version: 5.31.0
- terser-webpack-plugin Version: 5.1.1
Feature Proposal
Configuration could be automatically picked up by looking for .terserrc
in the same directory as webpack.config.js
like Parcel does:
https://github.com/parcel-bundler/parcel/blob/39ff8330d68c6c0e01d9e8471dd94ce1eb2e62ec/packages/optimizers/terser/src/TerserOptimizer.js#L23
Feature Use Case
Parcel v2 lets me customize the minification step of Tercer by using a configuration file. It'd be great if webpack
did this natively as well so that I don't have to install, require, and call new TerserPlugin()
in webpack.config.js
.terserc
also seen on the standard-things/esm
repo, which loads it manually.
blaise-io, ankurk91 and hashimaziz1
Metadata
Metadata
Assignees
Labels
No labels