• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 112
  • Last Modified:

Deployment of web app: minify, combining JS files into one etc - lazy man's way?

I have an ASP.net web app

I've run some performance tools like YSLOW etc

They pretty much suggest doing this
create one image and use css position  (a lot of work for me right now)
take the 13 JS files and merge them, then minify then
same as JS with CSS files

I have web essentials installed in Visual studio 2013
We are doing 1 release a day right now.
It would seem creating one CSS and One JS file and minifying them (and changing path) is a lot of hassle for each release as they are happening so much

Does web essentials automate this, or is there any other easy way of doing this for builds?
How does everyone else do this, do i just have to do it manually?
0
websss
Asked:
websss
1 Solution
 
ste5anSenior DeveloperCommented:
Seems like you should invest some time in continuous delivery systems like Ansible, Hudson or Jenkins. Or you take a look at Grunt.

The lazy man's way would be a post build script in VS which does this for you.
0
 
Snarf0001Commented:
Assuming you're on .net 4 or higher, just use the Microsoft Bundling packages.  They'll do it all for you, and very easily.  In dev it spits out the raw files, when compiled for release it will combine and minify whatever bundles you create into one.

https://www.nuget.org/packages/Microsoft.AspNet.Web.Optimization/
http://www.asp.net/aspnet/overview/optimization/bundling-and-optimization

If you're on webforms instead of MVC:
http://igorzelmanovich.blogspot.ca/2012/09/using-aspnet-bundling-and-minification.html
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now