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
Until mishoo/UglifyJS#33 is closed there are still some other options that would be helpful to support.
Wrap will wrap your code within a closure, helpful to make sure no functions are leaking into the global scope.
Define will define variables in the closure which provides an easy way to hardcode in the JS data like the the build date, version, and debug information.
The text was updated successfully, but these errors were encountered:
Having read uglifyjs' documentation, I came to this repo looking for how to use the equivalent of the `--define` command line option. I almost was unable to find how to do so, but gruntjs#12 saved me, indicating that the documentation was just not great on how to use this feature.
So this change would hopefully just help people like me who searched the page for `--define` and didn't know what to do when they couldn't find it.
Until mishoo/UglifyJS#33 is closed there are still some other options that would be helpful to support.
Wrap
will wrap your code within a closure, helpful to make sure no functions are leaking into the global scope.Define
will define variables in the closure which provides an easy way to hardcode in the JS data like the the build date, version, and debug information.The text was updated successfully, but these errors were encountered: