Plugin System Pro

Why plugin system

What is plugin will bind path /__/ by default for common used plugins, you could directly using /__/${plugin_name}/${plugin_endpoint} endpoint

Take firebase for example, let's say you are adding google analytics to your project with firebase integration, you could directly import from your current url:

  <!-- Insert these scripts at the bottom of the HTML, but before you use any Firebase services -->

  <!-- Firebase App (the core Firebase SDK) is always required and must be listed first -->
  <script src="/__/firebase/8.2.8/firebase-app.js"></script>

  <!-- If you enabled Analytics in your project, add the Firebase SDK for Analytics -->
  <script src="/__/firebase/8.2.8/firebase-analytics.js"></script>

  <!-- Add Firebase products that you want to use -->
  <script src="/__/firebase/8.2.8/firebase-auth.js"></script>
  <script src="/__/firebase/8.2.8/firebase-firestore.js"></script>

You could directly load firebase script from url such as (take current site for example)

Besides, in your development stage, the plugin system will also avaliable in your lets dev endpoint.

Edit this page on GitHub Updated at Sat, Feb 27, 2021