This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Coffeescript minification used to be perfect before 3.0, but now, the minified files have a major problem. Numbers in theform of 1.004 or 0.5 etc, are "minified" to 1004 and 05 respectively. I haven't touched any option in the menu. I haven't investigated any other problems with the new minification, but I don't think there are, as flow was good and my math was failing. |
|
|
We are unable to reproduce this behaviour. I tested with this CoffeeScript:
and this was the minified output:
Can you provide us with a minimal CoffeeScript file that exhibits the incorrect behaviour? (For what it's worth, we haven't changed the minification code between 2.x and 3.0, except to run it asynchronously, so we're very puzzled as to how an issue like this could arise.) |
|
|
This code misbehaves for example, along with yours:
which produces:
I thought this has something to do with my regional settings, since my locale is greek but no joy! Notice that the only extra addon I have at the momment on this pc is resharper, but even without resharper it doesnt work properly. |
|
|
I think it must be a locale issue, because the output I get is:
It looks like the minifier is defaulting to the local culture for decimal separators, rather than the invariant culture. I think I know where this is happening and I've committed a candidate fix for it, which will be in the next nightly build. In the meantime you may be able to work around it by going into your Control Panel regional settings, Region and Language > Formats > Advanced Settings > Numbers, and setting Decimal symbol to . instead of ,. |
|