5

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.

3

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.

| improve this answer | |
  • thanks @sfdxfox. anyone at Salesforce seeing this, plz fix your doc. – codeinthecloud Sep 9 '18 at 23:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.