You've already forked tribes-plugin-aether
forked from tribes/tribes-plugin-template
21dd359b2f
Document that external plugin hooks are registered through global_js bundles and window.TribesPluginHooks rather than host-side colocated imports.
17 lines
550 B
JavaScript
17 lines
550 B
JavaScript
// Plugin JavaScript entry point.
|
|
//
|
|
// This file is served by the host at /plugins-assets/aether/aether.js
|
|
// and included in the page layout if declared in manifest.json assets.global_js.
|
|
//
|
|
// Register plugin LiveView hooks here. External plugin OTP apps are not
|
|
// auto-imported by the host's phoenix-colocated bundle.
|
|
//
|
|
// window.TribesPluginHooks = window.TribesPluginHooks || {};
|
|
// window.TribesPluginHooks["AetherHook"] = {
|
|
// mounted() {
|
|
// console.log("Aether hook mounted");
|
|
// }
|
|
// };
|
|
|
|
console.log("aether loaded");
|