Create svelte ionic app
This commit is contained in:
parent
ff0ac8fd70
commit
c75003f5f0
24 changed files with 5408 additions and 0 deletions
22
app/capacitor.config.ts
Normal file
22
app/capacitor.config.ts
Normal 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;
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue