- 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.
Feature Proposal
Configuration could be automatically picked up by looking for
.terserrcin the same directory aswebpack.config.jslike 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
webpackdid this natively as well so that I don't have to install, require, and callnew TerserPlugin()in webpack.config.js.tersercalso seen on thestandard-things/esmrepo, which loads it manually.