coderaiser / minify

Minifier of js, css, html and img
https://coderaiser.github.io/minify
MIT License
228 stars 29 forks source link

Class name minification should not be done by default. #104

Closed Igor-Yavych closed 1 year ago

Igor-Yavych commented 1 year ago

Hello. 9.x didn't minify class names, but 10.x does so we ran into an issue, where we have class, let's say SuperbClass and in another JS file we had new SuperbClass(). Worked perfectly with 9.x, but in 10.x that SuperbClass became a and so reference from another file would fail. I think there should be some option to explicitly enable class name minification

coderaiser commented 1 year ago

Just added ability to turn off mangleClassNames, create file .minify.json with:

{
    "js": {
        "mangleClassNames": false
    }
}

Is it works for you?

coderaiser commented 1 year ago

Closed due to a long time of inactivity 🏝