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
11
votes
2 answers

SquishIt vs. MVC 4.0 Bundler

I have a an ASP.NET MVC application and I presently use SquishIt to help bundle all of my CSS and javascript files into a single element downloaded from the webserver for every hit to my site. I know that recently MVC introduced its own bundler. …
KWondra
  • 1,235
  • 2
  • 13
  • 18
10
votes
2 answers

using SquishIt in ASP.NET MVC 3

I'm trying to use SquishIt for minifying CSS and Javascripts in ASP.NET MVC 3 project. When I use Render method: .Render("~/content/themes/base/combined_#.css"); css is generated with random number instead of #, but link to css file is not…
Alexan
  • 8,165
  • 14
  • 74
  • 101
6
votes
1 answer

What causes Squishit to rebuild bundles

Can anyone tell me what causes/triggers Squishit to rebuild a bundle in production mode? For example, if I create the following bundle, the file 'Site.Master_{GUID}.css' is created as expected. <%= Bundle.Css() .Add("~/css/reset.css") …
Neilski
  • 4,385
  • 5
  • 41
  • 74
5
votes
1 answer

RequireJS Optimizer and VS 2010 Itegration

I was wondering if there were any VS 2010 extensions out there for triggering the requirejs optimization similar to how squishit works: When in debug mode, module files stay separate When in release mode, modules files get minified and combined
drogon
  • 1,785
  • 3
  • 21
  • 34
5
votes
1 answer

gzip js in IIS doesn't get compressed if static compression enabled

I have used Squishit to minify and bundle JS and to compress Bundled file I enabled option (Enable Static content compression) in IIS 7.5 Issue is Js doesn't get compressed and I just get minified js but if I enable dynamic content compression…
Salman
  • 1,266
  • 5
  • 21
  • 41
4
votes
3 answers

SquishIt MVC - Debug mode, not refreshing

We got a MVC project running and we seem to have problem refreshing .less files without actually recycling the pool. If it was just me, I would not bother with this since everytime I compile, the pool recycle. But, our web integrator doesn't like to…
Allov
  • 1,308
  • 1
  • 13
  • 23
4
votes
4 answers

Which one has better minification between SquishIt and Combres2?

Did anyone has the comparison between these two libraries (Combres2 and SquishIt)? If one library is better than another one, I also want to know the reason for that. I found the article said that Combres2 has a better compression than SquishIt.…
ensecoz
  • 900
  • 10
  • 16
4
votes
2 answers

Combining CSS and JS in Master Pages and View Pages With SquishIt

How do you implement SquishIt to bundle Css/Js across View Pages and Render it in the Master page? I thought I could use a ContentPlaceHolder above the Render portion, but there seems to be some odd behavior where it sometimes adds 3 files (1 in the…
Chris Missal
  • 5,987
  • 3
  • 28
  • 46
4
votes
1 answer

Minify media query?

I have a completely valid CSS stylesheet, which works, and queries are recognized, but when I minify (and concatenate) the stylesheets with SquishIt, the media queries seemingly stop working, and I can't figure out why. This is the minified CSS,…
bevacqua
  • 47,502
  • 56
  • 171
  • 285
3
votes
1 answer

SquishIt ForceRelease in MVC3 Doesn't Properly Minify JQuery Plugins

I am getting a ton of errors when using SquishIt in my MVC3 application with 3rd party JQuery plugins. On my development machine, if I set the ForceDebug method on the Bundle command, everything works fine and the JS is processed as normal. …
bigmac
  • 2,553
  • 6
  • 38
  • 61
3
votes
1 answer

How do I use SquishIt with a source that is not a valid virtual path

I want to squish a whole bunch of stuff together from various sources around my local network When I run the following code I get the error 'http://cdn.mydomain.org/ajax/libs/jquery/1.5.1/jquery.js' is not a valid virtual path ehich is fair enough,…
Peter
  • 7,792
  • 9
  • 63
  • 94
3
votes
2 answers

Reference variables in a separate less file using SquishIt (support dynamic LESS content)?

We are using bootstrap for our project in MVC4. So far, we were referencing the bootstrap.less file in our main layout page and it worked great. However, a new requirement has come along that requires us to have customized look for each of our…
Pitamber Tiwari
  • 536
  • 1
  • 6
  • 19
2
votes
1 answer

SquishIt Access to the path denied exception when deployed to hosting

Whilst on my local machine the following code behaves perfectly. @Html.Raw(SquishIt.Framework.Bundle.Css() .Add("~/css/normalize.css") .Add("~/css/nonsemantic.css") …
Greg
  • 31,180
  • 18
  • 65
  • 85
2
votes
3 answers

Is there a way to remove the hash from combined javascript files in SquishIt?

I'm using SquishIt to combine and minify my javascript files in an MVC 3 project. I'm trying to create an offline cache.manifest and the hash codes changing between edits is killing me. Is there a way to remove the hash that is appended to the…
Jacob
  • 3,629
  • 3
  • 36
  • 44
2
votes
1 answer

Can Squish It publish files to a CDN

I just found squish it, it looks very promising but I need to upload my js and css scripts to our CDN servers. We have 10 web servers and an external CDN. Is there a way to upload the compressed files to a CDN or does it only work on a single…
JustEngland
  • 1,371
  • 13
  • 30
1
2 3 4