Beta

×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

.NET Optimization Framework Bug

KingMotley (944240) writes | about a year ago

Bug 0

Apparently, the optimization framework (Also known as Bundling & Minification) has a nasty bug in it when doing bundling of javascript. When given a set of files, it first does a simple concatenation of the files together before doing a minification on the result. At first glance that seems to be a fairly obvious thing to do, well, except that if you have a whole line comment as your last line in a javascript file that doesn't end with a CR/LF that is. Unfortunately, that is exactly wh

Apparently, the optimization framework (Also known as Bundling & Minification) has a nasty bug in it when doing bundling of javascript. When given a set of files, it first does a simple concatenation of the files together before doing a minification on the result. At first glance that seems to be a fairly obvious thing to do, well, except that if you have a whole line comment as your last line in a javascript file that doesn't end with a CR/LF that is. Unfortunately, that is exactly what some of the more popular minification tools currently do. It'll concatenate the first line of the next javascript file onto the comment line of the last file, and well, things go badly from there.

Supposedly there is a fix coming, but not in time for our latest release. Yay for having to delete all our pre-min'ed files, and recreating them without the debug comment that is typically there to help debug in chrome. Oh well, at least there is a workaround.

cancel ×

0 comments

Sorry! There are no comments related to the filter you selected.

Check for New Comments
Slashdot Login

Need an Account?

Forgot your password?
or Connect with...

Don't worry, we never post anything without your permission.

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>