Minification failed

3 posts, 0 answers
  1. Morten
    Morten avatar
    267 posts
    Member since:
    Jul 2012

    Posted 26 Jan Link to this post

    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. Morten
    Morten avatar
    267 posts
    Member since:
    Jul 2012

    Posted 26 Jan in reply to Morten Link to this post

    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. *

  3. Kendo UI is VS 2017 Ready
  4. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 28 Jan Link to this post

    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!
     
Back to Top