Переглянути джерело

Update installation.md

Docs: Added hint for the correct order of custom code when using Alpine as a module
Joshua Kin 4 роки тому
батько
коміт
a4fd4f88b0
1 змінених файлів з 6 додано та 0 видалено
  1. 6 0
      packages/docs/src/en/essentials/installation.md

+ 6 - 0
packages/docs/src/en/essentials/installation.md

@@ -60,3 +60,9 @@ Alpine.start()
 ```
 
 > The `window.Alpine = Alpine` bit is optional, but is nice to have for freedom and flexibility. Like when tinkering with Alpine from the devtools for example.
+
+
+> If you imported Alpine into a bundle, you have to make sure you are registering any extension code IN BETWEEN when you import the `Alpine` global object, and when you initialize Alpine by calling `Alpine.start()`. 
+
+
+[→ Read more about extending Alpine](/advanced/extending)