andrewdavey/cassette — Issue #89: Customization of ScriptPipeline
Author: enusbaum
Created: 2011-10-19 19:09:08+00:00
State: open

I'm working on implementing Cassette into a project and am running into an issue where the minification library, when enabled, is resulting in invalid Javascript. The MicrosoftJavaScriptMinifier is evaluating the following 'raw' Javascript:

rangeHandles[2].css("height", (100 - high) + "%");

as

a[2].css("height",NaN-e);

The results is entirely incorrect. For practical reasons, I'd rather not muck with the logic of our application via Minification but would still like to take advantage of the concatenation feature. I'm unable via the CasetteConfiguration.cs to come up with a way to customize our JavaScript ScriptModule in a way that would allow for the files to be concatenated, but not minified. I'm not sure if this is just a limitation on my understanding of the library, or limitations in the ScriptPipeline object.

Any help is appreciated.

Thanks!