title: How to package a hosted web app with Ionic Capacitor
body: <p>I have a hosted, CMS-based web app that I want to package as an Android / iOS app with Ionic Capacitor. So I added</p>
  
  <pre class="lang-json prettyprint-override"><code>  "server": {
      "url": "https://my.domain/"
    },
  </code></pre>
  
  <p>to capacitor.config.json and did</p>
  
  <pre class="lang-js prettyprint-override"><code>import { Capacitor, Plugins } from '@capacitor/core';
  
  console.log('Plugins', Capacitor.Plugins);
  </code></pre>
  
  <p>in the main Javascript file of my app (I use webpack for bundling). This basically works, i.e. the app gets loaded and displayed properly. But on the console I see that Capacitor loads the web versions of the plugins, and <code>Device.getInfo()</code> says that the platform is "web", not "android".</p>
  
  <p>How can I make Capacitor act like it would when my app was loaded from the device's file system, and in particular how can I make it use the native versions of the plugins in this setup?</p>