There are some cases, react, that we don't need to minify every js file, só an option to minify only if there's already a minified file is ery much needed.
You could use this deprecated extension as reference: https://github.com/olback/es6-css-minify