You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem. When uglify was trouble, I was minifying the code myself after the build step, which was fine. But now I've updated to newer Parcel, and would like to have it take care of the minification for me. However, the top-level mangle is causing issues with this particular codebase.
If this were something in babel or in postcss, i could sneak into their .rc files and make my choices, but uglify doesn't have any kind of an .uglifyrc so I'm locked out of this part of the process.
💁 Possible Solution
@DeMoorJasper suggested we could pretend there was such a thing as an .uglifyrc and process that, which seems pretty good but is certainly unorthodox. It would be nice for this not to be a configuration option for parcel, but for it to be tied (in essence at least) to uglify itself.
The text was updated successfully, but these errors were encountered:
uglify already supports a --config-file CLI option to pass JSON as the options for minify(). Presumably, all options would be supported if they map to the options object correctly.
🙋 🙋 🙋 🙋 🙋 🙋 🙋 🙋 🙋 🙋 🙋 🙋 feature request
I have a problem. When uglify was trouble, I was minifying the code myself after the build step, which was fine. But now I've updated to newer Parcel, and would like to have it take care of the minification for me. However, the top-level mangle is causing issues with this particular codebase.
If this were something in babel or in postcss, i could sneak into their
.rc
files and make my choices, but uglify doesn't have any kind of an.uglifyrc
so I'm locked out of this part of the process.💁 Possible Solution
@DeMoorJasper suggested we could pretend there was such a thing as an
.uglifyrc
and process that, which seems pretty good but is certainly unorthodox. It would be nice for this not to be a configuration option for parcel, but for it to be tied (in essence at least) to uglify itself.The text was updated successfully, but these errors were encountered: