-2

how to create Bundle.min.css in Mvc of Css or Js file. I Can not find the option Web essentials in ms Visual Studio

1 Answer 1

0

You can find what you are looking for by using Grunt. The below Stack Overflow link is a similar question including a previous solution. Below is also the Grunt website for some additional infromation.

How to concatenate and minify multiple CSS and JavaScript files with Grunt.js (0.3.x)

http://gruntjs.com/

Sign up to request clarification or add additional context in comments.

2 Comments

Is it possible in MVC 3
Your files are .JS and .CSS, right? All you do with Grunt is point to the location of you JS & CSS files (Can and should be different directories) and it does it's magic and produces the new file. It runs off a command prompt and once you start the process, it can run and watch for any changes to the files. Once you change a file (the original .JS or .CSS), it will regenerate the min file. You will then link to the min files and not the originals in your template(s).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.