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

Bundling and Minification In VS 2017

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?
0
websss
Asked:
websss
  • 3
  • 3
1 Solution
 
websssAuthor 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
0
 
Miguel OzSoftware EngineerCommented:
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
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
websssAuthor 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?
0
 
Miguel OzSoftware EngineerCommented:
OK, regarding your extra question, the only way is to use external tool such your browser (IE, Chrome) or JavaScript Lint or JSLInt
0
 
websssAuthor Commented:
Thanks, I have used JsLint to spot the errors. It is working now.
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

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

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