Create svelte ionic app

This commit is contained in:
Niklas Korz 2023-12-08 20:52:41 +01:00
parent ff0ac8fd70
commit c75003f5f0
24 changed files with 5408 additions and 0 deletions

22
app/capacitor.config.ts Normal file
View file

@ -0,0 +1,22 @@
import { CapacitorConfig } from '@capacitor/cli';
const appId = 'app.ionic.io';
const appName = 'app';
const server = process.argv.includes('-hmr') ? {
'url': 'http://192.168.178.25:5173', // always have http:// in url
'cleartext': true
} : {};
const webDir = 'build';
const config: CapacitorConfig = {
appId,
appName,
webDir,
server
};
if (process.argv.includes('-hmr')) console.log('WARNING: running capacitor with livereload config', config);
export default config;