Skip to content
This repository was archived by the owner on Dec 2, 2024. It is now read-only.

Commit c9b2e1c

Browse files
committed
Add description in README
1 parent da6cdbe commit c9b2e1c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ Since Visualforce pages can have multiple references to your Salesforce organiza
2929
```javascript
3030
var config = {
3131
SalesforceContext: {
32+
CustomModifiers: {
33+
'<MyNameSpace:MyComponent.*?></MyNameSpace:MyComponent>':
34+
`<script src="myscripts/mystuff.js"></script>
35+
<link rel="stylesheet" href="mycss/mystuff.css"/>`
36+
},
3237
Resources: {
3338
jquery: "jquery/dist/"
3439
},
@@ -43,3 +48,5 @@ var config = {
4348
```
4449

4550
This configuration will resolve `$Resource.jquery` and `{!foo}` in your pages allowing you to use the same `<apex:stylesheet>` and `<apex:includeScript>` imports you would in Salesforce.
51+
52+
The CustomModifiers option allow to specify a regex to match a resource in your Visualforce page, and the content with which to replace it.

0 commit comments

Comments
 (0)