Hi Team,
On my current assignment, we have decided to minify all JavaScript files, so as for faster performance on the client side.
So, before deploying the JavaScript Library to Staging from Dev, we minify the JavaScript file manually (using jscompress.com) and then deploy the solution to Staging. And we then revert the JavaScript Library in Dev to the fully fledged original version, so as to enable easier debugging & readability in Dev for the other developers.
Please find below the current process, for working with a file name new_myFile.js:
1. Take the original version of new_myFile.js from TFS.
2. Ensure that Dev has the same version as in TFS.
3. Make changes to the file and test.
4. Now before deploying the version to Staging, we need to minify the file. So, upload TFS with the modified version of new_myFile.js
5. Minify the file and upload in Dev CRM
6. Create a new file named new_myFile.min.js in TFS to store the minified file.
7. Move the solution into Staging.
8. Come back to Dev and upload the original version of new_myFile.js (taken from TFS)
As seen above, this process does involve quite a few number of steps. Is there any easier way to maintain the original files in Dev and minified files in the higher environments.