We are using a large VS 2012 SharePoint solution. We are using many css and js files. We would like to increase the performance. What is the best practice to minimize/compress/bundle css and js files in VS?
Something like I register the path of the css/js files which are included in the masterpage. After each build or deploy these css/js files will be automatic minimized/compressed/bundled. When you go to the sharepoint site it will load 2 files. One is the bundled js file and the other is the bundled css file.
We do not want to bundle all the js/css files from the whole solution. We like to register our self which js/css files needs to minimize/compress/bundle.
If there is a powershell solution, it is also OK.