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

Commit 5262d47

Browse files
authored
Merge pull request #5523 from rafaelstz/patch-50
Adjusting syntax pattern
2 parents eb4ea18 + 4e061ed commit 5262d47

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

guides/v2.2/javascript-dev-guide/javascript/custom_js.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,14 @@ For information about how to initialize your custom JS component in a `.phtml` t
142142

143143
## Disable default Magento JS {#disable_default_js}
144144

145-
To disable the auto-loading of default Magento JS components and widget
146-
initialization:
145+
To disable the auto-loading of default Magento JS components and widget initialization:
146+
147+
1. Create a `requirejs-config.js` file with the following content:
148+
149+
```javascript
150+
var config = { deps: [ ] };
151+
```
147152

148-
1. Create a `requirejs-config.js` file with the following content: `var config = { deps: [ ] };`
149153
2. Put the `requirejs-config.js` file in one of the following
150154
locations:
151155
- Your custom theme files: `<theme_dir>`

0 commit comments

Comments
 (0)