Forgot your password?
typodupeerror
Bug

KingMotley's Journal: .NET Optimization Framework Bug

Journal by KingMotley

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.

This discussion has been archived. No new comments can be posted.

.NET Optimization Framework Bug

Comments Filter:

Fools ignore complexity. Pragmatists suffer it. Some can avoid it. Geniuses remove it. -- Perlis's Programming Proverb #58, SIGPLAN Notices, Sept. 1982

Working...