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

Minification failed

2 Answers 284 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Morten
Top achievements
Rank 1
Iron
Iron
Veteran
Morten asked on 26 Jan 2016, 01:12 PM

After upgrading to 2016.1.118 then kendo.all.js is not minimized by my asp.net mvc 5 application.

 My bundle:

bundles.Add(new ScriptBundle("~/bundles/kendoall") .Include("~/Scripts/kendo/kendo.all.js"));

 

The top of the returned js:

 /* Minification failed. Returning unminified contents. (99404,17-26): run-time error JS1019: Can't have 'break' outside of loop: break OUT */ /** * Kendo UI v2016.1.118 (http://www.telerik.com/kendo-ui) * Copyright 2016 Telerik AD. All rights reserved. *

2 Answers, 1 is accepted

Sort by
0
Morten
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 26 Jan 2016, 11:37 PM

Same issue in Kendo UI v2016.1.125

/* Minification failed. Returning unminified contents. (99441,17-26): run-time error JS1019: Can't have 'break' outside of loop: break OUT */ /** * Kendo UI v2016.1.125 (http://www.telerik.com/kendo-ui) * Copyright 2016 Telerik AD. All rights reserved. *

0
Alex Gyoshev
Telerik team
answered on 28 Jan 2016, 04:34 PM

Hello Morten,

It appears that the Microsoft Web Optimization framework cannot minfy the Kendo UI code. Since we already ship minified versions of the code, you can bundle them instead. This will also save server resources, as the code will not be minified unnecessarily. For further information, refer to this SO thread.

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
General Discussions
Asked by
Morten
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Morten
Top achievements
Rank 1
Iron
Iron
Veteran
Alex Gyoshev
Telerik team
Share this question
or