DX structure : /main/default, but it doesn’t have to be right?

This Salesforce official doc says:

Static resources must reside in the /main/default/staticresources directory

Is this an outdated document?

In my understanding, you can put this in your own folder structure, i.e

/resource-util/sales/staticresources

So long as the containing directory is named staticresources right?

Can someone please confirm, this is super confusing @Salesforce.

Answer

No, it doesn’t have to be /main/default/staticresources. It does, of course, need to be “staticresources” at the bottom level, but the folder structure is otherwise however you’d like it to be to organize your files.

Attribution
Source : Link , Question Author : codeinthecloud , Answer Author : sfdcfox

Leave a Comment