WARNING's on build HTML5 +minify

#1

After update OpenFL / Lime to [8.9.0] [7.3.0] each time I use

openfl build html5 -minify

I see next warnings on any project (OpenFl samples too)

WARNING - If this if/for/while really shouldn't have a body, use {}

if I don’t use ‘-minify’ then no warnings.

0 Likes

#2

Hello!

This appears to be a consequence of how we combine the application JS + our external script files. We are running the minifier on all of them, but we should try and only minify the application JS

I can’t fix this for the Lime release today but we’ll try and look at this on GIT

I opened an issue here:

0 Likes