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

How to modify the configuration when some code is lost after compression? #122

Closed iwjis closed 2 years ago

iwjis commented 3 years ago

How to modify the configuration when some code is lost after compression?*

Some code is missing after compression,

In Sublime Text3 can do this by changing the \Data\Packages\Minify\Minify
cmd.extend([self.quoteChrs(inpfile), '-o', self.quoteChrs(outfile), '-m', '-c'])
Remove '-m', '-c' to OK!,
Where can I set VS Code?

Before compression 1 After the compression 222

welcome[bot] commented 3 years ago

Thanks for opening your first issue in Josee9988/project-template! Be sure to follow the issue template and provide every bit of information to help the developers!

Josee9988 commented 3 years ago

If you are referring to the javascript options.

You can use the setting "MinifyAll.terserMinifyOptions"

You can edit your settings.json file and set something like:

    "MinifyAll.terserMinifyOptions": {

        "mangle": true,
        "compress": {
            "drop_console": true,
            "dead_code": false,
            "keep_fnames": false,
            "keep_classnames": false
        }
    }

The previous code is an example and you can modify any other javascript minimization setting. You can find more information about all the settings in the terser's github page

Josee9988 commented 3 years ago

@iwjis any news?

Josee9988 commented 2 years ago

I will close this issue as the issue creator doesn't respond. If you want to reopen it again, make sure to mention me so we can discuss what to do