Josee9988 / MinifyAll

A 𝗩𝗦𝗖𝗼𝗱𝗲 𝗺𝗢𝗻𝗢𝗳𝗢𝗲𝗿 for JS, JSON/C, CSS, and HTML, you will love its simplicity! 🌟 π˜Ύπ™€π™’π™₯π™§π™šπ™¨π™¨ and π™œπ™―π™žπ™₯ files and folders πŸ“¦ Reduce your bundle and file sizes with lightning speed ⚑
https://minifyall.jgracia.es/
GNU General Public License v3.0
73 stars 13 forks source link

Option to preserve original variable names. #70

Closed nothingnesses closed 3 years ago

nothingnesses commented 3 years ago

πŸš€ Feature Request

Is your feature request related to a problem? Please describe.


Describe the solution you'd like


Describe alternatives you've considered


Additional context

issue-label-bot[bot] commented 3 years ago

Issue-Label Bot is automatically applying the label enhancement to this issue, with a confidence of 0.92. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Josee9988 commented 3 years ago

The minifier renames the variables and function names to save space and make the code faster.

I am able to add this option but it should wait a little bit because I'm a bit busy with my university degree. But I can definitely do it.

Thanks for contributing

Josee9988 commented 3 years ago

Hi again, could you provide a sample code text for me to try this out.

nothingnesses commented 3 years ago

Ah hey. Not sure exactly what you're looking for, but assuming it's JS code that uses variables with long names, maybe this could fit the bill?

Josee9988 commented 3 years ago

The upcoming minfiyall version should fully fix this issue. There is a new setting called "terserMinifyOptions", which will let you specify any terser option you need. Including keeping fnames or variable names. All the options available are listed here: https://github.com/terser/terser#minify-options

Josee9988 commented 3 years ago

The version 2.5.0 is now available. Check it out and modify the settings. If something is wrong please tell me.

Thanks for contributing!