Thomas Stock
Thomas Stock

Reputation: 11256

Is there a javascript/css compressor plugin for visual studio?

I'm looking for a visual studio plugin with the following functionality:

On building the project or executing the tool, the plugin looks for all *.js and *.css files in your project and compresses/minimizes them into *.min.js and *.min.css files.

Executing the tool on project build would enable you to keep the references to *.min.js in your pages while changes to the *.js files would be instantly written to the *.min.js files.

Is there such thing available? If not what's the closest thing to automize tasks like that?

Extra question: How about auto combining files?

Upvotes: 9

Views: 3117

Answers (3)

Luca Steeb
Luca Steeb

Reputation: 1849

Web Essentials is best program for that, I really like it, and it has a lot of other nice features: http://vswebessentials.com/

Upvotes: 0

epascarello
epascarello

Reputation: 207501

You probably be better off doing it with NAnt and coding it to run the compression. Automated process is always better than a manual one.

Upvotes: 2

Chris Harris
Chris Harris

Reputation: 4735

Check out these two links:

An MS build script for YUI compressor YUI compressor for VS

Upvotes: 8

Related Questions