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
1
vote
1 answer

Does SquishIt reminify and bundle the css and js files on every page request?

I am using SquishIt for bundling and minification of css and js files in a asp.net mvc2 application. I want to know will SquishIt reminify and bundle the files on every page request. Does this not impact the page performance times and response…
santosh kumar patro
  • 7,231
  • 22
  • 71
  • 143
1
vote
1 answer

How to fingerprint urls of CSS images with SquishIT

We use SquishIt for our CSS and JS and it works really well for cache invalidation. Whenever we change our CSS or JS, a new URL is generated which forces the browser to load the updated files. However, assets such as background images have their…
Eddy Kavanagh
  • 254
  • 2
  • 15
1
vote
2 answers

Declarative dynamic bundling/minification for MVC?

Is there a stock or pluggable way (like a NuGet package) to let me declare .js, .css, and ideally .less files in the MVC views and partials where I use them, and have them automatically runtime bundle and minify in production? (a.k.a.…
shannon
  • 8,664
  • 5
  • 44
  • 74
1
vote
1 answer

using squishit and rendering external minifiedjs at the end of body element

I have master page and child page in my aplication. At runtime i determine the js & css to be included in master page pre-init method and render the js & css using squish it (bundlecss.AsCached & bundlecss.Render) method. In master page Head control…
1
vote
2 answers

404 issue with static assets, CDN and multi server environment

We have an issue in our production environment, maybe someone else has ran into this problem and has a smart solution. Prerequisites: We use a load balancer in front of two front end servers. We use a CDN for delivering static assets such as…
chilly
  • 193
  • 2
  • 13
1
vote
1 answer

How to add dynamic CSS source urls in Squishit?

How to add dynamic CSS source path/urls in Squishit? @Html.Raw( Bundle.Css() .Add("~/Styles/" + (ViewBag.SiteName ?? "default") + "/a.css") .Add("~/Styles/" + (ViewBag.SiteName ?? "default") + "/b.css") …
bcm
  • 5,470
  • 10
  • 59
  • 92
1
vote
2 answers

Minfy CSS and Javascript that includes @import url (ASP.Net)

I have about 20 CSS files loading on my page, and I am looking for a tool to minify my CSS and JavaScript. I really like SquishIt, but it doesn't seem to handle css that is loaded via @import url. Since quite a few of my CSS files are loaded via…
MillinMo
  • 395
  • 1
  • 7
  • 21
1
vote
2 answers

Does SquishIt support SASS?

I'm using SquishIt 0.8.7 from Nuget. But it doesn't seem to pick up my .sass or .scss files. It works perfectly with .less files (utilising dotLess).
Greg
  • 31,180
  • 18
  • 65
  • 85
0
votes
1 answer

Best practice for SquishIt in develop time

SquishIt could bundle the js files. But I don't want to bundle it in the develop time. What is your best practice? There are some methods as below: Add a global property to indicate develop time or production time. use #if DEBUG ... #end Above…
ricky
  • 291
  • 2
  • 12
0
votes
2 answers

Using SquishIt to combine js files has no effect?

@{ ViewBag.Title = "Home Page"; SquishIt.JavaScript.Add( Url.Content("~/Scripts/jquery_ui.js"), Url.Content("~/Scripts/jquery_1.4.4.js") ); } @SquishIt.JavaScript.Render(Url.Content("~/Scripts/min.js")) It shows like this:
vincent
  • 1
  • 3
0
votes
1 answer

Loading aspx page using jquery .load method

In my page I have a dropdown that filter through the dining options that we have. I use jquery .load to reload the list. My problem is I'm using squishit to compress and combined my css/js files and I need to reference this again in the aspx page…
0
votes
1 answer

Failing to render squishit bundal

If I have a partial view, named: _jquery.cshtml, view like so: @(Bundle.JavaScript() .Add("~/Scripts/jquery-3.1.0.js") .Add("~/Scripts/jquery-ui.js") ) and render the partial view, using: ... @Html.Partial("_jquery",…
Rusty Nail
  • 2,692
  • 3
  • 34
  • 55
0
votes
1 answer

SquishIt load already compressed file

Hello i'm using Squishit to minify my .js and .css files. Recently i have added new layout and application start took to much time because of Squishit minification. Is there any way to 'tell' squishit to load recently minified files if the persist…
IT Man
  • 933
  • 3
  • 12
  • 33
0
votes
1 answer

Getting errors when Browsery bundle with SquishIt

I am currently refactoring the javascript portions of a web site, and now I have bundled some scripts together using Browserify. The resulting script is bundled along with other resources using SquishIt. In Debug mode, when SquishIt is not bundling…
oligofren
  • 20,744
  • 16
  • 93
  • 180
0
votes
2 answers

SquishIt javascript error when minimized: 'missing ; before statement'

When I run SquishIt in development mode everything works fine. When I put it into production mode I am getting the 'missing ; before statement' error in Javascript. I've tried removing the offending javascipt files, but the error moves down to the…
Chuck Conway
  • 16,287
  • 11
  • 58
  • 101