Questions tagged [squishit]

SquishIt is a free library to compress and minify CSS and JavaScript dynamically in ASP.NET and ASP.NET MVC

SquishIt is a free library to compress and minify CSS and JavaScript dynamically in ASP.NET and ASP.NET MVC.

It also combines multiple CSS files into a single file and multiple JavaScript files into single file to decrease the number of HTTP requests, which in turn speed up the web page loading. It can also support bundling and compilation of CoffeeScript, LESS, SASS/SCSS assets as well as Hogan templates through different plugins.

How to integrate SquishIt in ASP.NET and ASP.NET MVC

Download SquishIt from GitHub

60 questions
2
votes
1 answer

Is it bad practise to use SquishIt to minify javascript which is already minifed?

In my project I've used quite a few minified scripts to improve performance. However, amongst these scripts were quite a few un-minified ones too. Is it ok to use SquishIt to minify and bundle already minified scripts? Is it in any way dangerous…
jaffa
  • 26,770
  • 50
  • 178
  • 289
2
votes
1 answer

Using SquishIt with MVC3

I'm trying to use SquishIt with MVC3. I downloaded the Nuget package and I can see it under the Project Reference. But I can't call any of the methods in it. I also tried importing the SquishIt framework, but that doesn't work either. Any pointers…
SimpleUser
  • 1,341
  • 2
  • 16
  • 36
2
votes
1 answer

Force SquishIt to refresh/recreate minified files

Am looking to integrate SquishIt with our webapp. What I have noticed from the testing locally is, SquishIt generates the file only once. Based on other SO answers and reading the SquishIt code I gather that the file generation happens if the…
Amith George
  • 5,806
  • 2
  • 35
  • 53
2
votes
1 answer

squishit gives 304 (not modified) instead of 200 (from cache)

I am using "SquishIt" for combining my .js and .css files. The problem is that the squishit bundle results in a 304 (not changed) when all other resources are 200 (from cache). If I put the files in the regular way I get the wanted 200 result. An…
Yaniv Efraim
  • 6,633
  • 7
  • 53
  • 96
1
vote
2 answers

How to use SquishIt on Windows Azure

I want to use the SquishIt nuget package inside and MVC3 application that is running on Windows Azure. I'm using SquishIt for CSS and JS combination and minification. In my Views/Shares/_Layout.cshtml I have the following…
hydr
  • 408
  • 3
  • 10
1
vote
1 answer

Use SquishIt and get 'Controls collection cannot be modified because the control contains code blocks' error

I am writing a .net 2.0 website project and had been happily using SquishIt for some time to minify and combine by CSS and Javascript. I recently starting getting this error : The Controls collection cannot be modified because the control contains…
rf_wilson
  • 1,562
  • 5
  • 32
  • 44
1
vote
1 answer

How would SquishIt render a file using to a local directory but write the file reference to a different subdomain

Is there a way using SquishIt to render a combined file to a local directory, keeping the filename SquishIt generated, but changing the domain? So, something like…
Gene Reddick
  • 4,655
  • 4
  • 34
  • 35
1
vote
1 answer

Unexpected token else exception on bundling JavaScript

I have some java Script files which is running fine when I'm not bundling them , but when I bundle them using SquishIt Framework It is showing error that unexpected token else on somewhere in new file in which all files are bundled together. I've…
1
vote
1 answer

How to stop encoding of font-face file path during bundling and minification by SquishIt

I have a font face declaration like following @font-face { font-family: "PreloSlab"; src: url("../fonts/PreloSlab-ExtraBold.eot?#iefix") format("embedded-opentype"), url("../fonts/PreloSlab-ExtraBold.otf") format("opentype"),…
Vikram Kumar
  • 3,876
  • 1
  • 17
  • 28
1
vote
1 answer

Squishit keeps looking for AjaxMin version 4.48.4489.28432

I have installed squishit version 0.9.8.2 with Ajaxmin 4.96.4941. The problem is that when I run the ASP.net site I get error [FileLoadException: Could not load file or assembly 'AjaxMin, Version=4.48.4489.28432, Culture=neutral,…
Sofia Khwaja
  • 1,909
  • 3
  • 17
  • 20
1
vote
1 answer

SquishIt generates empty file when using Bootstrap _:-ms-fullscreen selector in forms.less

just as a precursor, you should know that I currently don't have the option of referencing another version of Bootstrap or using a CDN version of a minified Bootstrap. In my scenario, we have LESS files from Bootstrap being referenced by our own…
Jay S
  • 7,904
  • 2
  • 39
  • 52
1
vote
1 answer

SquishIt replacing with short

I'm using 9.8.0 latest stable framework of SquishIt. Problem with javascript minify. When it minify long variables like function(imReallyLong) to function(n) This is ok for minify but only if you are not using eval()! My method was: Fire: function…
Erçin Dedeoğlu
  • 4,950
  • 4
  • 49
  • 69
1
vote
0 answers

CSS Bundling output file not generating

um using SquishIt to bundle css in a particular folder and my code is as follows public class HomeController : Controller { public ActionResult Index() { var stsring =…
not 0x12
  • 19,360
  • 22
  • 67
  • 133
1
vote
0 answers

Support dynamic content (not on the filesystem) using ASP.NET MVC bundles

I have been using SquishIt to bundle and minify css and javascript. Now, I have to move to MVC bundles and replace SquishIt. SquishIt provides a way to to feed in dynamic content at runtime so that I can load things like LESS variables from a…
Pitamber Tiwari
  • 536
  • 1
  • 6
  • 19
1
vote
1 answer

Can we reference a squishit generated JavaScript and CSS with # from external domain?

We have a ASP.NET site which is using squishit with # appended to the end of the name of the newly generated file. This project is calling another PHP site which is hosted on an outside server. Is there a way to call the generated js and css bundles…
Kremena Lalova
  • 531
  • 1
  • 4
  • 17