web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Process around maintaining Minified files on CRM

(1) ShareShare
ReportReport
Posted on by 3,497

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.

*This post is locked for comments

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans