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
0
votes
1 answer

Getting Error "CS1026: ) expected" when trying to combing .js files using SquishIt

I'm trying to combine a couple of javascript files using the SquishIt library. I'm following the steps that are provided here but I'm getting a compilation error stating " CS1026: ) expected" when I try to load the page. The application is an…
Hamman359
  • 1,052
  • 2
  • 14
  • 27
0
votes
1 answer

Error to Integrating SquishIt with Asp.Net

i'm trying to use SquishIt in my Asp.net pages, but i'm receiving this error bellow My code : <%@ Import Namespace="SquishIt.Framework" %> Web config : debug false
Leogreen
  • 701
  • 1
  • 6
  • 20
0
votes
0 answers

AddRemote method is not downloading the javascript files for the CDN for Squishit

I am using SquishIt for bundling and minification of css and js files in a asp.net mvc2 application. I have used AddRemote method to download the jquery-1.7.1.min.js and jquery-ui-1.8.17.min.js from CDN in the release mode, but still I am seeing…
santosh kumar patro
  • 7,231
  • 22
  • 71
  • 143
0
votes
1 answer

How to use defer or webworker api with SquishIt MVC framework?

I am using SquishIt MVC framework for bundling and minification of the js and css components present in the application. The code is as mentioned below: public static class HTMLHelperExtensions { public static MvcHtmlString PackageLibs(this…
santosh kumar patro
  • 7,231
  • 22
  • 71
  • 143
0
votes
2 answers

Make SquishIt behave like AssMan

I'm working on an MVC4 site, and I would like to use some resource management software to consolidate & minify JS & CSS (+ less & coffeescript), SquishIt has all the plugins I want, they're already configured. All the examples show a very simple…
Bryan Boettcher
  • 4,412
  • 1
  • 28
  • 49
0
votes
1 answer

Does the latest version of SquishIt still have the issues with JavaScript closures

While doing some analysis on the usage details for the SquishIt framework, I came across a link as mentioned below: https://danielsaidi.wordpress.com/tag/squishit/ which describes that SquishIt is having some problems with getting to work with…
santosh kumar patro
  • 7,231
  • 22
  • 71
  • 143
0
votes
1 answer

Appending # in the Render method for SquishIt framework support web farm

I am using SquishIt framework to work on Bundling and Magnification feature for bundling and minifying the js and css files. I am using the code as mentioned below: <%= Bundle.JavaScript() .Add("~/js/jquery-1.4.2.js") …
santosh kumar patro
  • 7,231
  • 22
  • 71
  • 143
0
votes
2 answers

SquishIt.Less ProcessIncludes() not working for CSS file

I have a Less file which includes a CSS file, then a set of Less files. With SquishIt I want to combine and minify these, but it ignores the CSS file unless I rename it to .css.less. I believe ProcessIncludes() is intended for this purpose but makes…
Ian Grainger
  • 5,148
  • 3
  • 46
  • 72
0
votes
1 answer

Squishit.Less doesn't do anything

I've used package manager to install Squishit.Less 0.9.3, and I have two files style.less - @import "test.less"; test.less - body{background-color: pink;}. In my page I have: <%=…
Ian Grainger
  • 5,148
  • 3
  • 46
  • 72
0
votes
1 answer

How to delete the old files that are created with change in the js and css files without manually cleaning them everytime using SquishIt framework

I am working on asp.net mvc2 project. Due to some limitations I cannot migrate the code to asp.net mvc4 version and due to this I am not able to use the Bundling and Magnification feature for bundling and minifying the js and css files. I used the…
santosh kumar patro
  • 7,231
  • 22
  • 71
  • 143
0
votes
2 answers

SquishIt : How to minfy CSS files inside asp.net default theme and Javascript files from asp:ScriptManager?

I like this library but could not find any info on how to use SquishIt with asp.net themes and the scriptmanager? The examples below work on the masterpage as long as you have the css links and js links on the same masterpage. How do you use…
kami
  • 233
  • 4
  • 11
0
votes
0 answers

How does SquishIt deal with global variables and functions

I'm not sure if I will use squishIt page by page or use one combined file with all JS in the project. I'm a bit worried that some global variables in my js files will crash into each other. Does squishIt deal with this? I know that there shouldn't…
thatsIT
  • 2,085
  • 6
  • 29
  • 43
0
votes
1 answer

weird implications of minified scripts

I have the following piece of code that emits all my javascript: @using SquishIt.Framework.Minifiers.JavaScript @{ string[] scriptLinks = new[] { Url.Content("~/content/script/json2.js"), …
bevacqua
  • 47,502
  • 56
  • 171
  • 285
0
votes
3 answers

Compile .less file on save with SquishIt

I'm using SquishIt and have a .less file which I add to a CSS bundle with the following line .Add("~/content/styles/dev.less") This compiles as dev.less.debug.css when I build the solution, however I'd like to be able to just save the .less file and…
ajcw
  • 23,604
  • 6
  • 30
  • 47
0
votes
1 answer

using SquishIt with web resources

I'm using the SquishIt to manage the js/css files and it works perfect, but only with my manually created files. How can I use it with the asp.net webresources/script resources (scripts for ajax, validation etc.) which are returned to browser…
lkurylo
  • 1,621
  • 33
  • 59
1 2 3
4