Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230989

Capacitor Network Bug? Problem? Help Me

$
0
0

Thanks, that screenshot is very helpful.

The problem I see with exporting to www, is that it’s mixed in with your source files at www/src.

If you want to keep it that way, then the following should work:

Vite Config

import { defineConfig } from 'vite'

export default defineConfig({
    root: 'www',
    build: {
        outDir: 'dist' // Should put it at www/dist since it's relative to root
    },
    server: {
        port: 3000, // Puerto para el servidor de desarrollo
    },
})

Capacitor Config

{
  "appId": "com.testCapacitor.app",
  "appName": "app-nativa",
  "webDir": "www/dist",
  "bundledWebRuntime": false
}

Viewing all articles
Browse latest Browse all 230989

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>