Skip to Main Content
Feature Request FR-4680
Product Area Application Builder
Status CLOSED

1 Voters

Create minified version of files when importing or creating new files

j.sieben Public
· Oct 6 2025

Idea Summary
If you persist a css or js file, a minified version is created. If you on the other hand import a file, lets say from a GIT repository, this is not the case. This is problematic if you set the link to use minified file versions, as the minified version is not updated if you replace the full version with a new one.

Use Case
The mentionend problem arises if you are working with more than one environment or if you use externally managed files in more than one application. Without creating a minified version, you are forced to open and save every single file to create an updated minified version.

Preferred Solution (Optional)
Two solutions: If you create or overwrite an existing file, APEX could create a minified version automatically. If this is not possible, a button to create minified files for all files could be added.

We reviewed this idea carefully, and while it was interesting, we concluded that due to all the internal implications we need to take into account, it is unlikely to make its way into APEX.

Comments

Comments

  • vincent morneau Admin OP 5 weeks ago

    Hi @j.sieben , the team discussed this idea today, and I think there is a confusion of responsibilities for Git and APEX here. If the source of truth of your JS / CSS is on APEX Application Static Files, then it makes sense to leave APEX do the minification. But if your JS / CSS is hosted on a Git repository, then it should be up to your external repository to do the minification. 

    You could then serve the files to APEX directly via a web server, no shared component involved. If you insist to use the Application Static Files, then you would upload the two files simultaneously from your Git repository.

    I fear that the approach described above mixes Git being the source of truth for the un-minified file, with APEX being responsible for minification.