This is a migrated thread and some comments may be shown as answers.

MVC bundling / minification broken

2 Answers 86 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Marcel
Top achievements
Rank 1
Marcel asked on 08 Sep 2014, 10:08 AM
Hello,

Since the Angular support my MVC bundling/minification of kendo.web.js is broken on 2 lines of code.
line 82526: Can't have 'break' outside of loop: break OUT
line 82604:  Can't have 'break' outside of loop: break OUT2

Is there any way to fix this without having to change my implementation to exclude kendo.web.js and use the minified one ?

Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 10 Sep 2014, 08:14 AM
Hi,

Thanks for the heads up. We'll investigate this issue and try to work around it.
Note that having a break statement outside of a loop is valid JavaScript. It's just that the Microsoft minification doesn't like it.

My suggestion is to leave it as is, as excluding kendo.web.js requires ordering the scripts manually.

Regards,
T. Tsonev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Marcel
Top achievements
Rank 1
answered on 10 Sep 2014, 08:38 AM
Hi,

Thanks for the response.
In the meantime i wrote my own custom script bundler, so whenever available it will take .min.js files ignoring minification.
This way i can still use bundling and have minification on non-minified javascript files.

Regards,
Marcel
Tags
General Discussions
Asked by
Marcel
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Marcel
Top achievements
Rank 1
Share this question
or