MVC bundling / minification broken

3 posts, 0 answers
  1. Marcel
    Marcel avatar
    42 posts
    Member since:
    Apr 2011

    Posted 08 Sep 2014 Link to this post

    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. T. Tsonev
    Admin
    T. Tsonev avatar
    2817 posts

    Posted 10 Sep 2014 Link to this post

    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!
     
  3. Marcel
    Marcel avatar
    42 posts
    Member since:
    Apr 2011

    Posted 10 Sep 2014 in reply to T. Tsonev Link to this post

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