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
}