Bundling and Minification In VS 2017

websss
websss used Ask the Experts™
on
We moved a asp.net project from Visual Studio 2013 to Visual Studio 2017. The issue is that when you make changes to the JavaScript file, the changes are not effected on the min file. Also, when you checkout JavaScript file for edit, the min and map files are not checked out. We are using VSS for code control. How do we fix this issue?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Miguel OzSenior Software Engineer
Top Expert 2009

Commented:
websssCEO

Author

Commented:
thanks
In the above link they say it works with VS 2015 & Vs 2017. Tried installing but it doesn't appear on 2017, only gives 2015 as an option
Miguel OzSenior Software Engineer
Top Expert 2009

Commented:
Extension is a nice UI, but you can still do it manually by modifying "bundleconfig.json" in your project yourself.
Warning: You are better off creataing a new ASP.NET MVC project and move your existing files just to avoid missing any dependencies and configurations that comes on the new projects.
201711-Options-for-CSS-and-JS-Bundli.png
Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

websssCEO

Author

Commented:
Thanks, it worked. However, the issue now is that there are some JavaScript files that have failed to minify due to some errors such as when a comma is left out in a statement. Unfortunately, it is hard to trace where such errors are in the js file. We have tried turning off JavaScript build but the errors are still preventing bundling and minification and also publishing the project. How should we fix the errors?
Senior Software Engineer
Top Expert 2009
Commented:
OK, regarding your extra question, the only way is to use external tool such your browser (IE, Chrome) or JavaScript Lint or JSLInt
websssCEO

Author

Commented:
Thanks, I have used JsLint to spot the errors. It is working now.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial