{"_id":"@ptkdev/sveltekit-cordova-adapter","_rev":"132-70a50102fd255d216a1cd3934dd0ac96","name":"@ptkdev/sveltekit-cordova-adapter","dist-tags":{"latest":"0.3.1","beta":"0.3.1-beta.1","nightly":"0.3.2-nightly.127"},"versions":{"0.1.0":{"name":"@ptkdev/sveltekit-cordova-adapter","version":"0.1.0","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"publishConfig":{"access":"public"},"license":"MIT","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","type":"module","exports":{".":{"types":"./index.d.ts","import":"./index.js"},"./package.json":"./package.json"},"types":"index.d.ts","scripts":{"lint":"prettier --check . --config .prettierrc --ignore-path .gitignore","check":"tsc","format":"pnpm lint --write","test":"uvu test test.js"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@types/node":"^16.18.6","sirv":"^2.0.2","svelte":"^3.55.1","typescript":"^4.9.4","uvu":"^0.5.6","vite":"^4.0.4"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"gitHead":"b4237854e8c2d128cfcfd46569b1b099e0c60f3b","description":"[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordova.apache.org/). Create your mobile apps with SvelteKit and Cordova.","bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"_id":"@ptkdev/sveltekit-cordova-adapter@0.1.0","_nodeVersion":"16.16.0","_npmVersion":"8.13.2","dist":{"integrity":"sha512-7Nb5hCV6VCXcZ1drogCXbGZNy277QNiSZCTm654hKUpa7KyzV7BnWcsOf86KobS1/nK6unMTVn1KiE/TaHy5Xg==","shasum":"3db9c9d60c626ac520796e833e9a30930db99ce2","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.1.0.tgz","fileCount":6,"unpackedSize":10798,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF2BFplPLn4/mNVi9LtX+6G2AHnGdDsXHqarxGgHwNvUAiAkFMQob8veY7Pf5+Jt8rV6M81Te42OErTHzWiSCyyFig=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4puUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo5RQ//S/6qqh+9ohAQblpL81wKm9Ol+WRHockjg+Coj0slq0AIo0K9\r\nV4y4RyAH+GSqZIxPo+hVfWkoix6n6gLhVy4KI/+URUpIK1Lg9VpKQVlhSzpz\r\ngCBqFLKDFSGOGDOmSA5WzSg2iWmgr/88J86zHfE/oanDT4UCtAZ2s3kLBSVW\r\nTlK0b5kxt1tsUDLTTWkvQzGcZCSyD3W07BpZub5WCNpxdZZ98s77GXt9/8og\r\nxpzgdgUDUg+P1wSXZcuNRgnhuj1rJGN+ywBDdaiZl2miXYxWViv2thhMgMHD\r\nMMCCZym8Ztv5IjIVblxUgkotPVrAbuw66cuHkcEhvUsLG5U0A6dRDaQd7BSG\r\nSdtSWvZkQO+0k5oWyLxfWu8VuGCM0oyFcG49cZIDDkCA8vJ6DWAioI/TNvIM\r\nvNuu9VD9gCB0rpPkzf5Aq8p2EdoymqQrozegafjP7Y/QPSx/p+whdmt+69I6\r\nMBV0NAwtcC3clbeZdSVHo3JWB+GAtFpcBpx7US1B5PIxvpOesfX8twxYcagu\r\n1v54lB5NHY74cCd6m8US3PJ+kS/v+yF08IfU7B8sNffdU7CiECmiXJMUomtK\r\nlzksXweQv3BuNbXEaUSJsPiP1r4akcOhUnDIKouyPIiKr+dfn4XoZKjoxGIc\r\nAHhk0MrxSSVnMF2Dd/maCCZI67a2O7eYpkE=\r\n=7mjY\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.1.0_1675795348001_0.26377110413829996"},"_hasShrinkwrap":false},"0.2.0":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.2.0","main":"./index.js","type":"module","exports":{".":{"types":"./index.d.ts","import":"./index.js"},"./package.json":"./package.json"},"types":"index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"cp ./app/**/* . -r","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.13.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.51.0","@typescript-eslint/parser":"^5.51.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^39.8.0","husky":"^8.0.3","jest":"^29.4.2","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.1","yargs":"^17.6.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"gitHead":"052cda5eb91fcd2e4d3eda3402f48d59d69a792e","_id":"@ptkdev/sveltekit-cordova-adapter@0.2.0","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-vkEzfpUDGeO88yThEJbUr95CdyjJf4/AcqRIH8vDnFh/k8/TAVH3IbsGcy1dAfnwcsNKjTHh4D5L7nJkkqtv2w==","shasum":"eb59b0dc1696d5bdacb2ec5da6ce8216c50d9208","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.2.0.tgz","fileCount":8,"unpackedSize":36383,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxI+V1VwZJ+L+/M1XK6dGIYKM59ghhGaS5t/b/ZwphwAIgS55cLat/uQ68VDrfy7e7GA7BrujMY8BCax9vJqTtGr8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5v/2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqiZg//bo73Iz/0UrRvsXFdWBeLonh4Q5iKK+M6wz99zNGJUPwpIpq9\r\nFYrDAQQX7jyAM3aP5tpchhdMMeS9O+I8RRc5Ipl716uGSrcRvnSiWBbnQbbv\r\nxCmJSuI+UYO24IhX54hBO1rz9ssD7lMROM3A7RI1RNGVSOCkXyt2qNpQcXXq\r\nMu+/sQLsJmDlBoHvhJVveiBtrk+3zT0lGYVrWV1+9ODpsonx86KgIhHwS0Rl\r\n9nrugAVDGGmk0eY7RyjeCN57zHrDNwEZusSpRM0CyQ9IuYuu6L6xHlkc24ih\r\noJyEtvFbaz31S2dX9kmaqrTGmceVavQ3Vib/zqyd5LLJ3Seo92Z9LXt76+JX\r\njFx6RVhIuuzWaTyVvFAvcvxxS79RNsFm8J3sEMg4NG77oir8LCefmdNWGFxG\r\nFknAODqnTvEmYWoFU1mpqEQdRFt0Uk8Na6a8DcXO5Lj2H59A1h4fGpqUQm8n\r\nRCxw7bYMBofIAbccAqB1IxdZpm65iQm+nsZSw2hCQpkrqx+9R7T941fimyGo\r\nMF0/pwpw2ZXP1vagkJmGXoK1pMTdB1X5z2aMq2v2j7KjSQA+pLDn/3KrHmEw\r\nTnBlgITMFTrSepz0JvFa2FsmPafZenyjxyQrb5IzH185Q1tE2ooup1RbMbdG\r\nLi0sLDoKI5SJkjJVzcIsWkinrnlPaMtDpI8=\r\n=K+aO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.2.0_1676083189885_0.7306733719810572"},"_hasShrinkwrap":false},"0.3.0-beta.1":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.0-beta.1","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"cp ./app/**/* . -r","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.13.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.51.0","@typescript-eslint/parser":"^5.51.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^39.8.0","husky":"^8.0.3","jest":"^29.4.2","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.1","yargs":"^17.6.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.0-beta.1](https://img.shields.io/badge/version-v0.3.0--beta.1-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"eec06b1760c9f5b6d89ff2bc8339b55aa8aadf65","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.0-beta.1","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-zJ30xw7+KENs3y+2DfUQ3+O8PAb2FuNMxY0MfQCVI0p1oZrGecVa0tKst33lKqgucngoRuScCK47Escz18+7SA==","shasum":"664a75d7be60657291916a6439e3bac311cf2967","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.0-beta.1.tgz","fileCount":9,"unpackedSize":35842,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF+0vIBYgEqmQ3AlnnIQ2dpUfj7HYqkTbfo45cPbL5++AiAUd3yJK3yrx0fHzWufinXK4HZOwJIqLGzTzLXAEyjL/Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5/YYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqLKw/9FfFWNF4DBzY+dnaVtTiSnWspIkW5CsVKbUS3W/3uz4L/Ns3K\r\nqAdnYPtcXr+8Nh8lq1BVe4q7syKHIuv3J7x3CMSVvFPujgNCNV9ADKJ23CDQ\r\npnFSTMboRSFR5iWG8Vn6OJEHT8hoZgPAl/k8GpucVDm0Hhx5L66XMoFBU0Jh\r\n/Y7WopZficLq/8IIxjp8c4n/4k8Eh1xeUU1HSSeXbmpRzKwltgMnUVTVsp7B\r\nOKP6T5VCcoiQXROg/0uXaBtt7TLD+6BhatLRQYcGD99FJ7zHwh3bsmLlUCrf\r\nG9SB+ry545vQDMY0/TM8OKOwMOch/CWlhLbG39B+UII2a9mrttv6lxCTwHN9\r\nEKOPeVFWLTrGjiQJlhe7OUvEUGVGsI24Grb9S8zaEr/3xAb4su9jRUBuhXN6\r\nPXe60HbqnPrKj3cZhyLJl0TirGrJ8C6d29RxsX+cGFSXsniDmA6XhTLfUsTM\r\nR5spqRBdorxaYiDqwTnbLlWeOEbfWqYdl4WoUexL4AiZYBX27VsxJWesYzW/\r\nBmecAw0lBFwADSs5EyMIIB2L/Hlosr+nSpLsyDQjHA1YqKsDJkBnRq5JtWwG\r\nLiKKtTkSN0FIJvcRTocF2tDgH+/uiIcG8hJduIrZw86BwB0bgXVZzeGk1NNC\r\n50bA/kEIW22dezD0PkZpU/IpvvYou8MorQw=\r\n=+8if\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.0-beta.1_1676146199924_0.7777140035881109"},"_hasShrinkwrap":false},"0.3.0":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.0","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"cp ./app/**/* . -r","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.13.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.51.0","@typescript-eslint/parser":"^5.51.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^39.8.0","husky":"^8.0.3","jest":"^29.4.2","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.1","yargs":"^17.6.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"gitHead":"3b69344cb0c2e16a64bb83c87684d95c1619a7ba","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.0","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-9MQKnA0+nA3I/OT10Ge9UoYNI7Evts/gH41hU3yF3TNlTMx+BfESbTz/fYGZ7E5MCgGiLyr8dSFo0IejmKyS7g==","shasum":"f2a57648520d3f8b57799da34c119b97eef10a73","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.0.tgz","fileCount":9,"unpackedSize":35820,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDuMA5n7pnDUfHF/IadnUqMOPvY7/FZbQ48d83AjaaeKQIgNBn8y1sMAQC2mpqnawOEyUtZjMCV2XPI5MAua/ybIiE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5/b8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrknA//fmiTK5hDgsYIk+cavJPSC7SVxYU8GOmHbFWXX6G5/CO2tKoZ\r\nJgHWchGYq2WbZNgXDTYpMb5sXBXXRFbruZBvZPqB1ExE5HZ5a+yVc0eP1hHk\r\nFkox1OLdlKh5EmrbieEmGE3hdoQNfSH1wD9Ojw00LMMOnQ4rha5ev/EslEHW\r\n0VH5WB7OpBoI6q/3IMebGUJjuDo1McF4GxrjpPADHW1nfF89x6t6WjaunRu7\r\n7qvBaF0jXynogcLPa7EtxVfkBiCROixC6Adb8eLux/bURAJx1fUCQ42e7g8V\r\nq8Ihk6p0/7gclTgYZS7PP8vYD41Ft7Y2AEG+SXo6gtUlgscw/IPCruyQOqvP\r\nR+VuHk6/4AqOQJd65Vmt3PyTMpo4uJpewRC8EJodgDEAYURywxI0sWuHaitm\r\neqOhwuBCRgtE+DwwS8VgpDrD7RwH/4oSdWfqNKgvOZHYfCdTnCBllRy6PNiM\r\nGlTR0xXfIaOQo6ZkipslwEZ4OFc5xYBt5ZEcHNcGB8BY2wnHayOeuQJKvrRR\r\nWhBG/TKYBbNWXFkQWFPIQltAVgGULbcKvcXmYmW0B2i/IJVAmzgL1c3kmJqV\r\noBzLPTiSWohky2ZXRWuMLiy6rMfnCs1PyjtaBf7zAmBpitWlHCDfgMRk/6op\r\n1USSEel8L6XJuD7T7pIyJ+6EVJqAStzyLMY=\r\n=XeSE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.0_1676146427993_0.9361449329167311"},"_hasShrinkwrap":false},"0.3.1-beta.1":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.1-beta.1","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.13.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.51.0","@typescript-eslint/parser":"^5.51.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^39.8.0","husky":"^8.0.3","jest":"^29.4.2","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.1","yargs":"^17.6.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.1-beta.1](https://img.shields.io/badge/version-v0.3.1--beta.1-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"e8f465eb5aa28ce84cbf95788c1fc16c33a6bc87","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.1-beta.1","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-qQNrplX1PLakzwteRSqw73dPL0EbgVeV/m63GfNn6bn78+sc3PTebO9cKfkWbJe/KtSrxw3LEwkGH5AksICDOg==","shasum":"cae4a77327d2d41da28aef63839207b7ab6f5130","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.1-beta.1.tgz","fileCount":8,"unpackedSize":35568,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDI9UuOP4fEwr7/pLXbC1UnCCjTW4Ci6/9SFA2ZMtybfgIhAIR00VosfEOXbAOigxM+1AnVOcIs9Gp0jXkYij3tAiQ7"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5/n5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpETw//dXmpXynkPTaa/rmm1wCruXTUdEhmim3PfteGxuTt8P5UefM/\r\nVQeiVeBlqIxeZTVHaYeXRwydb267EWyIkBXFFTqUJGZ8BjWfpJSvR855IjSB\r\nFKvqyInXpTSAoE6/MhO1VEVcmZi1hieGcJrFBwR4w5YdYrx7taqzo1Fq01qI\r\nFc6eRFNOqX9aCZZdACm0LJxvE/v081rqUq6cWxSk8Jbqh5cqrVoEW7U0RUz9\r\n07biLl2vleesZ5RlhRagY8uuZPkJTrSk/uvMj717RiNmEyGZSPm/7Ddva686\r\njmA205N+izN9asfJv/XWNZTcaMkYIiWgH/rZb84O93moh+bymfsbzV03GTU3\r\nRYplkQ+KcpcMM2X6XxQl9HlMRgn4MNFT7t6p7STAYkot9OrmrSHoW2I8u5HP\r\nHnDAGnpJr0mOr3+8FEai5UA0vBVmgfUE71L2mtK7zymv2yhsXjJFDCAP8M2H\r\nm/GbDdcZr05DkbByyLJHkJd3r83Ryz23E1tjrV3LrpXfvIgjxpoDFsFUwBU4\r\n4tw+5Za9PhDsFCx2RR1ktHQEuQvuAZVDv+mTWYyoMdY+lqTCiwrqxg4ccFqp\r\nYHph3mwW9OCoLWTaDDI2epOa/g0k1B9mbPj8EKaYhUIXWJ28W4vb6eorZJDX\r\nBwMgZt59LWDQ4BNEgNGXRBJYybDrscy/Nkw=\r\n=FJol\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.1-beta.1_1676147193147_0.07347569205277416"},"_hasShrinkwrap":false},"0.3.1":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.1","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.13.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.51.0","@typescript-eslint/parser":"^5.51.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^39.8.0","husky":"^8.0.3","jest":"^29.4.2","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.1","yargs":"^17.6.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"gitHead":"4a60601085001644f279897727306e6587e99426","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.1","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-kjT5l3hlck8JLm1r8Toc3mGPNdkMYN3mNhHtlp8wxPmms6bsBAun1DZEyV/9q42U1xapF7BlzDr1J3wgFu2m/w==","shasum":"5fbd008935f59a6f7b9b64badba729ccbacadab5","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.1.tgz","fileCount":8,"unpackedSize":35546,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC084uO/5MJYt3kQ1iIvi+HaKIfkpUdBK3Q/tH8sh1JfAIhAKhvBP6GvRibYmOI6lwDrmPGPs2U+lT1Ft/u+NTuNgEj"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5/pgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq0fA//RhsGAlYf2qqWubLCELqkeyFYVd50CUzacHD1I4eF9eTJT2vb\r\n0bMW0kTnAXN1iSk5pFErzDDyFhsZfgQVE6pgZtGWCzaloPuqTIEFj9IsPGdG\r\nRpLHQFZnyqKPnHyt2C0uirr1N9wi0VzUpAoY2PVr5+5eNq03Es7VBtvgoAkp\r\nvsOGu3U8UuXvHiW/LyDuRlNkUnX514psc52B4UgeTarvK2brCp59jJTHyNwz\r\n0aUza77zNRXLKiIF6YpcaCFMrsY+oarbrkEihZSDCJK8mB8JwjiYGowUcEuS\r\nAygzqmJemsQqj8wJsWaH2C3sfRTtWyEt/Xp2dMSq9Ms4Cd75xnNd5YrdWLyE\r\nlATMyJo9jPNi8xWvtZaq1LUh0Uq3bwEZkAw3bcIoHHCWN6cE+rh+20YUHOy4\r\nUA46T1/ecLEHb2/ojYKQQkSBhxsQMVTQ/am+VErbLyuKsFjGn+8F8639JnGx\r\n/VPC7TtObtQXEfdhKvOcQgj7QuOAUREIQqxOMh9T8dSH78Aabf2kQ8dDV4UQ\r\n0vaDZwd3VxS23sjA+zOGAb8vUY0Te00zYllii7hmHmraWkaP16YJ8c1QOp67\r\n4Kk2sgaeIdAcTTxNcCyQNy5ihR6oZ6CCuV4LxBq69gAg12vTovqJxibMsE0h\r\n8JXhldQ/84EyVUUYvnOrMqf5yXd4uIPokpM=\r\n=k6kS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.1_1676147296488_0.19217005128288012"},"_hasShrinkwrap":false},"0.3.2-nightly.1":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.1","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.13.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.51.0","@typescript-eslint/parser":"^5.51.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.2","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.1","yargs":"^17.6.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.1](https://img.shields.io/badge/version-v0.3.2--nightly.1-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"49d18ee3dfed6099ebabbfae2fc545e74fad0d77","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.1","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-vDLmDH2Wp6fwyiG2tTqQ2SXL2UCIxxwIucGI6odq63w1yYr9KrYssMJF5/vXj6XNBUsmcc+SxncOviz/koVmzQ==","shasum":"aa431dfc03a5f852ecab2cbdc080e92926b8f2e3","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.1.tgz","fileCount":8,"unpackedSize":35577,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICxmUeWGca9QkgBsNsofaUf89Q+Samocaa2/jnKBekQDAiEA7fPOFK4EEF9FlTV4EWon140bMGcppxEW+GPrejW4alw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6CWNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrwYw//Y9VUCg01PFmgBMmoNDh9TgBenl2eZbYgOiHWZ8JkE0FHxN4z\r\n4b13tTAUJsT1MHk34luqtJa2EnE7YNu9qhYC83QoUewJIns3uQPJToWP4kfP\r\nJz48KCUH8jGUVUcjzi1AhH3/t7ISra1GU7SYijxKqpykkbiXDI5k3cYSKJJi\r\nNDnZTMaJV65X/r+kpDK3IhsAij5xH0XYdqFZ4IBvuo0ECMt8ZEFqzGjAn21+\r\nQHN9lJrE/WsWHu/87HqCVtYDZQJgBi7rIy40DGk9TQDfpvj7QD0QdPiY78eS\r\n7WwErk0ECqv+F3YxH/4ZQyi9s3Xo6HuDrRUqfiGOw9ShPWKWBrFG9b9lhe2h\r\nj9roSU3PYIJU60qac9N6cskc2eHGczZ3LRypy5IRH7GmLChhNCDhrJ82ygf8\r\n4orDctNXM4++MEmWX8w/FQnh/xZh5t812FTHj+l2tCbj+5kZOzIAC7Jj80QZ\r\nxEjMalG1KidexOODII2G3Bcuvfwmi2KONZZGeR67UyiAXt2PlsB+hkz5gMEv\r\nVZaNAPsCMf0Ipqzv9RR+mNeSNuhX7T2wgePZX3VmKjtmHTq3xTZzdEcnGjR5\r\nh/tKq2cq1P6Y11N2O+gIOGYhe7sFmmRFYhxEojf93HeUVPmQlkeNL+CFP0Rc\r\nxSjY7IIOguMyLFq1h4irkvEOvDKBfBGYRqU=\r\n=h358\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.1_1676158349001_0.019918836640397064"},"_hasShrinkwrap":false},"0.3.2-nightly.2":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.2","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.13.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.51.0","@typescript-eslint/parser":"^5.51.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.2","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.1","yargs":"^17.6.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.2](https://img.shields.io/badge/version-v0.3.2--nightly.2-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"defcec72e82d21825172f75da4a91a516f7ae91e","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.2","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-EOVgwOhys06Gbz+ZJrtHrOajFDZQE/KalV4YNtLO2PpjjGLsgPnjp6Y3hS7vslXCa5F5K2RtoTTtfXlcYIkUjw==","shasum":"adda89d95c52dd45d84c21da872ea06c4b5d0680","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.2.tgz","fileCount":8,"unpackedSize":35577,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+cCr87p6edWBefVUpFujsU7QF67khCDGoPeTdxw1PrAIgZImtEH3efE0igeqeS71CCO/sSy1rZmZGA9JIMa4KFYI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6XcSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqEiw//d831ANWEEkgXvrT1icgh4gvwzVOrrWtOjreeVdTx0gO2brZ4\r\nqVINffdYNxI+jvpYnCokki+okWwa+Xt6+8jdyVeD2rtNFmXeQS5zGxa4XMzY\r\nWtvMPCY9rnvMwVC61kef3SZbSmQG2dYKF/Cr7BHpL1kCQb9l5LsB70VB59kr\r\nH6o2j3b8BPJpR+dx8XMIISn5TtGyYFa+cH9hC5M1m7kZhVB1K2r97rIGwLF8\r\n8hvdV5xoYOA/MKWeqMGuGL7b3Sw1O60yJ7ILiyV6mviPWHOZcHfGvJLA0LCP\r\nQExT7nuCWH8EV9q4Scc6tzFDx3cR9aXRtFiN5EIyiTPXiJ1DhzvweSV+d3WI\r\nrowck4YGakb+eKf/+YjhUvKPdCUR4lsUVKmIWCgBo/MFauppqdUp234CT1mR\r\nWAo6rVfq7JX//f0B2oDGzuLHq16gCsw+HqBT9MnQOBhkqesXPWowLzI9RstB\r\nbB+8+eH1hWJmFbOEF07ii5HY0Y06RScf5ItCaDLSwAmb9GHi7vBMc3vUsFhx\r\nHh5koFLbN7oil61GqDVEvbqh9bpAyfcQqsUimdtdYazgCojCOd1bdMHwPC/c\r\nUdtFr7RKzqunB7lEE+yr+tnusLFPac5o6qtBPRTG/r0dcDNgVVlQfPnkn0dJ\r\nMTZVOL06fpnIynsGSY00DFpM5fykMmCZpHI=\r\n=0bSK\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.2_1676244754447_0.12985542893174484"},"_hasShrinkwrap":false},"0.3.2-nightly.3":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.3","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.13.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.2","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.1","yargs":"^17.6.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.3](https://img.shields.io/badge/version-v0.3.2--nightly.3-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"77387f078c6e81998ee941ca10463a4dd5cdb06f","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.3","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-eB+sYNEfzIINy52h/FyMfHD+8pBMD9O9HcbAtJhEkCTueSQJLswP0Q8BcUjFRy+qlC/UPq+HRKdoMuvWuxt4dQ==","shasum":"69efde34b4658b3941696942cf6b98f099496891","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.3.tgz","fileCount":8,"unpackedSize":35577,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0ckSb0eEquayzAfJKfDV3wdEF/KweZETplq1mt3lNPgIgDN4OPtOrnilU8Al6uI3aKPLAbEykmeZVjUeJMwec1tQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6siUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmonUg/9EYrhA2JpN683SYIzwLuDds5tIAjV9mRmmuVrdHvBu4Gp8d0a\r\nuwWsvjhbJI8Cxv4BvMCcg1zOzq0Tj0tMao8Cc1gT4wnlC5GPsKYNEsTxWAME\r\ngftdWEN1INxMf2tEP7r8BVAlV1t7iovq5TqVXOLPh4ZOp08NzjxMv86O+4Gk\r\nZQZBfRAtwRfnEMm+07q+sho2M/aGdINnaICb6URqkpltV+djPBW6bl7U7bRS\r\nNs3vD/wyDm9xDW2QLDoOho6tgWCej0Be0X+Ye+5vHu2hoqWF6cYPYkb0d9kF\r\nI15fpw5nZQyBXTsBhwcQOPcRy0CDLiC/Nht1ewi0IrtF0zpnmQy7UEQSGq1B\r\nei4q8Wl889jDIWAtQkfgPiPu04lmPGv2TXPNSzIMM9GjKqphS1gL3m0dhgyl\r\nEgdmZpQBLsuTUryndKFFcSOXoaHLRkRrcyH4szsvOTu9G6WN3YfcHL/6maUA\r\nSInsev0ZpPr3EKjVRGYoshcvrhmBx6KtYgk7TFdENgIwyMyywJS3nvRKBsyU\r\nRb4B7zSz4noyGJ1orTJ1GT2Z5yP7nXU+tSyx4eI4598WJ8aRxBnlxJETR3bI\r\nnq+7B7dIuEaUPsFD+dnJJvGMxFgFgbF7unqj7yI5cjuHa0ND3SuZJ0ywe79y\r\nbeTOMgTh1nIzFsBfOWdlpFdEpilfru9c8z8=\r\n=fwKY\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.3_1676331156737_0.878877523854491"},"_hasShrinkwrap":false},"0.3.2-nightly.4":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.4","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.13.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.2","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.1","yargs":"^17.6.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.4](https://img.shields.io/badge/version-v0.3.2--nightly.4-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"d016e2a3f3b9e827fe2341237a14aa2b0b3fd675","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.4","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-hJnHoageEUfLM8Dd0jwXdxochQ2XWf0x8y8OWU8CI0HTV7AMmOolXI6yTzvBQm0TIJ/JCURYu8wRt/7tOzacdQ==","shasum":"9873b094f299e8e66f908724ac84983efdfe4474","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.4.tgz","fileCount":8,"unpackedSize":35577,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAmGEM/4RYPi4rZHvm9oPXq53k6Tf5S3r4Uyf2cdyKYjAiB6pDIvEwx7aVxKBhrGLKTJh2b9TIKvDOkuSZ7O52vzmA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7BoPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrZthAAlVO0yMtKymv9Hx21sk79q5gjlv/nornK+xquTTcRsO/jBCl3\r\niciHyJ4Y4PAZwZX4fGKAJnGYgx8tqu98z/OWZtEyFy5OH84UUzNouTav2I0C\r\nUWQ6nVJCDpcPtV/vrKcVI+ER+yfSzmDat8EfuPm6qhVU11hRXmnK1YlS3pl2\r\npTsGKRo6DZgfn9++HbHAHz2e39Am6QNrf/WoaKH4Uc/RMCldodR7yfCHZpyJ\r\nZfeAZ5rYG6/5oEoN+nJub5nG8HQLQ2aYArdLF/yEbqUThsIuKasMIYbwprCR\r\neUIGP7CVhimdPUYwtOjZw3a7g1E+2y01VVVsVNzHN/Bjh2DYHpvcyYMpya45\r\nyQ2CDLWIT8CPgQiIQ5Tw6nuWhkm1N07F6zQhYJ7tRWKZQiATg660U/n4+ZrD\r\niudcxVKlGfeQEFWL3IGLjFFl/B/HU4MY47IreU/7buorlWr9ySwVdMzA2qZm\r\nW+RC0TcELO3o/qAtwJHIV5gfG18meWuYwWDQmekatCBBiRquuXXonLYHwbah\r\nKUomi4jTolpNqKTJYsXOigEZfgFjjbgqe0+OEqCUwcIrGvmwgTas7wKiA4w8\r\n+OEWTITM97+Iy65sOKhlkS3kF4YNWZHkfs8R5ROySdCSmhE9n5RO0YGXM02k\r\nZ0i44iKUm+eDfpWc6xsaVN9ZcgJZFDQc5Z4=\r\n=Tz2e\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.4_1676417551574_0.89884255046181"},"_hasShrinkwrap":false},"0.3.2-nightly.5":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.5","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.13.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.1","yargs":"^17.7.0"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.5](https://img.shields.io/badge/version-v0.3.2--nightly.5-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"b8d8158d287513577390e99b73f4c65d6faef00e","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.5","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-R8ODZ3bNL3GsvpBe7MqdoCPs0fg2uB7KUN+Jx6x4Hh8jwa1ovoJpWRaJDvJRCjh/9+iGstchxVixxRfQnu2TCg==","shasum":"f12f95080753ebb87be2d1a534632210773b2f20","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.5.tgz","fileCount":8,"unpackedSize":35577,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQyXZogZd9zRNYo1q3erCzgf3cDGZcWkyQeMK/C4/W6wIhAIA06vsH14zz5+E/VJBWglhJB1TLOsLKGwXgLhHAg0Xa"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7r0XACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqe5Q//Rcb1m1gc9n176wXWTLhqmKqsRKIKK3xazojv2mmKrgR4LYte\r\nS7VrBow6y/RHis/f5FWr/helqDlTDXG16vfCc/OT5W3Ae+WVS/PXdRXJwRHT\r\n1IkXbweRvocjdEx7vQZn/LXQo772UweLex/07Vu1SnumGobtsBPxv2pRICZ+\r\nTfK9B8hEPgAdBmK/E6NLxJiNl5lfXtdK5RWefsPHkek6wpPGTNrE0uwqtSdc\r\ng9lrXKn+Us71lLvFjdSuiTmJWXUfUGgM6sIfHN8dm+GT3rx4GMtsjW9/g3zI\r\njPWj9/fEdRQCMPiD/4C9B2MkSH/Ch78R58vICdR7Nk3mqeSlIL/j9LhxrDZu\r\nmraVnaYN5SoXX+8/AgI0r3QqD3q85jPBFbyB7f60hKfr1LH/TqS6P7MdIb2S\r\nASznbapS/AYcauNGNRfBRltx8HqlrcBZBLCNGwp3A9qre+Z8iWwEz6UR8IzQ\r\n7qnfMD2fANk2LBHogyFErDZAZQLRJ5SHbMXaK80eehXoaoC8EUWxPwE/Ta1A\r\nYfFFXLFoBsxo0zACJAVjzBH982VbohRNFeEYvUj3zTSkHGmL2fyoq6tO9RCR\r\nna71OGmHmzhp/zA4i1isX2iWrapeF17Q+zEH6X/FyEW0hxJ1suFHLwEKZCZL\r\nSpuQNOryKxeB/y/KsX490c8Hd0BL4ACBQj4=\r\n=S1nc\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.5_1676590358852_0.26699576563844474"},"_hasShrinkwrap":false},"0.3.2-nightly.6":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.6","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.2","yargs":"^17.7.0"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.6](https://img.shields.io/badge/version-v0.3.2--nightly.6-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"063aad4f72a19a4a6335b1fccbdcc248ad1cab4e","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.6","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-YcGH0i6UFKMVMhaQV/F5PUsiBEKYYdzHQQ0COrnIkxIX26VG0bJtodbaGFzCpZmZqaDmhdWa706GQmNWEZnIUA==","shasum":"451db0d360fc4943951240089fe7c6a548fd21d9","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.6.tgz","fileCount":8,"unpackedSize":35577,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCV4bmQyiMS3/nmOMVmqgepSmLVRxbvR0mk6ncr/MNfNQIhAM1u/52omSd30+5GZt13mqm+INS9tGxI4z4+Hbj44GAR"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8A6UACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqIPA//djPRqlLQk4A5XkWXxaoryA1VQHwYw0ubto3P8FKp9cuMp0m0\r\nXblGM6rWDNF7pKLnk8ovQ6gO1ZHIOZ1aYn/1ueFref1XouGFPR28okJed94Q\r\n0+VB3Hlc6pVkre+F+LBOp/RAkjJQ88hdYGHuiLwA7Rovt6G/hi/Ch9HC2m8P\r\nT24Ap1dnIN3jQ6fDOnmrkOgSorWVfRCRrSgDeWbxeaNlYeDEbs0k18JvSOCM\r\nCwCJrbkjIyHlZGXXfDikGpvz8WUC5X3Mpdx021xJZaia/kK9JUheCsu8qB0X\r\nFNYPY4Zq1eCaYD1Sz9f3kVANKn6HhtiRafJ+5Mof3K9xUHPnL7v855TWwh/d\r\neadNcJujkkT0rCsMqnLivv/m4ZuMnXrBBWeGmaa9A6tAx1TF1oPTevcbZgcw\r\n28jcZ4t43JMYecsVbHuzPZWGv8krZRSkWfqqBbohYcQkZ/PC1uGo92srfyPu\r\nbT+T1eIAdzROun4KLETF0pjcUL188Qhk0XlXTeiLicckX73odiOJ5dsFfWaI\r\nA9BCoX/32XqUEzoxqvod//KkfY6ejePegouH7lcvhLZM1tnpKt8yUnfIm9ym\r\niUH92SSx0faPITh0b5/v2spVNlg+7vC580HnkGBLHjHC1TLLfGNsUePnMtqv\r\ndlDFwoP15dwxRuKRSHJm+qZAYeuohB9O8Es=\r\n=6i9m\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.6_1676676756071_0.4254863019872057"},"_hasShrinkwrap":false},"0.3.2-nightly.7":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.7","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.2","yargs":"^17.7.0"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.7](https://img.shields.io/badge/version-v0.3.2--nightly.7-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"52d3688d6f9280772fe5d99cbff516759bdd16d9","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.7","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-IfxBnvF0Aw37l6/ovRjWCpqbbwQ9Lc4Z7zNNFOFODF7j56xyvFyCKKFSxzT+jKHslNE3LvMNHANMsR6IVmhX2g==","shasum":"6eaa1d5d5dc7d033aa78894e13f645e6b6ecc805","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.7.tgz","fileCount":8,"unpackedSize":35577,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFxBssOy/5TsuUhVH2oyNC9wKadNXOuqrP0RR90TLxelAiEApaTmu+KpaOUdUBurrHQr3ahZHTDWsJai3xJms4llFig="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8WAbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoo1w/8Cic52Sp8zAeAcc0krQma4/MY2Zffki2j8G+3UOcPEti81qru\r\nWxbuiNl6xOH0nrW7Glcq8QQW9sqJ10YtPMFurD8vvpLz3HLmu5HUjErVBzWf\r\nK5dHirGvLW8r5k0Xwe8fg40fjur9oGuqz05Wkv4/5T5EC/mLGfkbdWCEsUSe\r\nDdqg9PGp7v1OpNNrKEblqPhQo9wO2DGsmFFbSFixdNGt6WzN+dGt3IpWr/Q9\r\nPQaCVSrKIDgLbjxRpciwOsyj35HoJg6tGJGrWkIawz3bWIiQSrqwO6asMYDo\r\n39uWVtIUvqAds3ojjWSLasCTRVIhOUYf4GABs0aBpfPVaQr8HqRuFaQRkKrj\r\n27otqhQWwstRE8WlW8H/E+tg5EdQ4K01wziDQPuGF6ysuQgGVTpPvSqqOlnE\r\nZqul950z7yXfI5mc77LG8SJ1WKsK3NISkYBlHr4kqWF0+xSTT2m4bLoy3KNt\r\nqTLqaEvWgI0FtX9DPmKmzrEsR9i9/Hgp9ghCkyPM59Uzv2w8oXwrDFaW1V9L\r\nsbII2WuE8ny4nAo8Z8pOQy05VSi5I15eoEOUcBF7oWiTWA7RjfQyB1i/odYY\r\ncbHMh3xVq7+E3z6gzb89g/ZkigGR5RBW5PDxAHPd0gDfrFcTeWiLG8dJ3iQS\r\nOaXM69IFpbgc88742yZoDizO3bPnTXdYryQ=\r\n=iABh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.7_1676763163711_0.30896453689982906"},"_hasShrinkwrap":false},"0.3.2-nightly.8":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.8","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.2","yargs":"^17.7.0"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.8](https://img.shields.io/badge/version-v0.3.2--nightly.8-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"40ee92c749399aed17926c26acee9aa898af0155","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.8","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-fiiyYgiEzDxSikK9VgTJLa4biNJs5TewvAK+V19a8jb+xNU+suvuAfDBE69nv/0EQrDKk2TwdySV5wriQrRYTQ==","shasum":"6abccdddd338c904e66463e75f076931916b90d4","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.8.tgz","fileCount":8,"unpackedSize":35577,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJ2EQ7PIHkUObasN0J+eaLg2VlELARBb2t6ilzYnAkHwIhAI9P+qzgiOqq34Vc2+KXNRys3+b72CGPY/uPZCoEWjQO"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8rGIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrS1w//Sy8UikePYlU1P2Ps9aDZxXSOi14QIRtpYNJggzs6h12VLj8y\r\no1ve4Ip+gK9kZaEu4kO05pM2u0CFNpI2mOgOy9IQ1nXkxRT9IPhn4ofAN7+I\r\nxr/3iX9pDbsTu6357beDvoocyt7F2rE9dMUohdFuuPYrc0x5ktaz99wBwuku\r\ntc1AS+iBF+Gstr65ZCIeRJFPBM/GJhauMIfdqgvU8u5pAlrWXvsBPItW78x2\r\nALu8dse2iLscipbR/0eIsbqMBzgCGA3QgZgHUjw1jJjPIEt/S0+tuLMdoyEF\r\nmpRG3NpUPhiIs7a9+EkC8R2IPzxIsa52KczKddFzxwFPRuFxHD7Y+8I6gFKh\r\nvV2kn7RUig21ZJBCMQ2xnjmkGk9rINVD7JkymcHemp52irE2P1OHxUSnqfCS\r\n8F+qYBKWRZzftz04xyo0Kb9rsqYqSPc4r9496UnMIyQRjiMzeAfsEZLukJmn\r\nyPNL+ICcM+72ZEzk2TCwpg5jA2x/0lLqXP6L9Y0nc2OZUfS47sM53IFFfP2C\r\nVvJUvPZxM3cyEyZ9Iq2khdv4mol36E6Zt1BW5zHkOUohMsfHmU9VpX+K1dz4\r\nAjb6begciGP6qrw1cjYtgmAb2ZPn6clX1EGMinB5tmKVqwjXiye4vcmkzeEp\r\nLg2oobCzd+ugpBSFYQM/w0exB2afRWgj1q4=\r\n=zuvL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.8_1676849544265_0.07445311570393831"},"_hasShrinkwrap":false},"0.3.2-nightly.9":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.9","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.53.0","@typescript-eslint/parser":"^5.53.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.3","yargs":"^17.7.0"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.9](https://img.shields.io/badge/version-v0.3.2--nightly.9-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"f715cf70d8e0e035a67a1c4d94468cf31467c125","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.9","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-/yyUmEv7eGuiuG+DhMq/sV53GpUtG9eAkZNGLx0CKerTHHfJ9IQAlCVHIcbNuxr664REiRHzmF8vB6M6hmGNAA==","shasum":"716bf5f26d15b84eba6b886a1c13aed8fa7638be","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.9.tgz","fileCount":8,"unpackedSize":35577,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDx1Pz3AJfoUOo+w6Ik/jcSkhhK3pN/nMnDrmKxinRdRwIhANVofrf8HrhzyGlO6OlPXbRfM89QeyGQz4P2gskWtxou"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9AMNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrZTw//QACADtPdnLKky2CQC0eMwwerbRODpyJHgmTJZ1t46MOUN+lx\r\nt+0HS1YoWJcjtDEqlr5o2XeuUDjhiEEd8vM8XkUEYSOF3Km4dOB7nmnAjv7g\r\n/mV0XkgHwlK7O4iqxkoWPaBeXuz28LoJdieLF7HOoilb9imk0nAAzAusw6p3\r\nflO9xvD/GfLrhres1p+5zGqZ0u+dYcJe+2tZ7dOde5b8OzZNpUhJyp4vmqaV\r\nmKfR6UbwdeHrfsJfnddi7CBF6s2bU84M2j7o0tXkosL5gOgorw+y7cwDceG3\r\nOhW5FyQbN6jZ6PCj5TtK60PXXBb/mwarZeN9buTtix3vg7/e85La3e/62M+1\r\nH7f8hUgSColOgDevtWe6eCKJZ24weZZlkcnKmHnEsUM+8ZmaZPZD4E9RuXAB\r\nEnaZLL/fC6q/fZ/TGk4wq+VJlTMa+GHv7YWB2ctzdqfVhVW6xVJzrx/jIcq6\r\nE740uoxAJGZUUsb6ZSPVXld11SDreZIOMOJAMKTXiWbEcHWkbBX5R/cnr270\r\nUK6tE0hDQGSVV8zF8Y8YkipFG4e6+uDvxvLTbDFThNd/r4Eqxwu+rup6uda9\r\nx2lxWQ460e9IsJgMnSbFFgZqvZ7/wj/KfvVewX5FAg75zJtvAGLQH3tCjJUP\r\nBe19mBSZJQ86A74mLhpx9bIIwjloO3gBoZ4=\r\n=BQj8\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.9_1676935948867_0.07202974809525964"},"_hasShrinkwrap":false},"0.3.2-nightly.10":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.10","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.53.0","@typescript-eslint/parser":"^5.53.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.10](https://img.shields.io/badge/version-v0.3.2--nightly.10-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"7934cb7dae7a35f33b440bb5daa2ca949e16b242","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.10","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-EpyiGMMJO7xncwvYRuHsyXIFwZtZP8jlFUIM2E2v4aZFnKE07wyFp8HapzZupQJKKH3b0srlehpScc4QNGHS6w==","shasum":"1110efbb19b43702edff6fa09bb476e08c157339","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.10.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAe+pwFfkstygdZIiaJYp4IZpozJlw/BOjgUJX+nvhyxAiEAuvQKF+8TpAaKJBDEmQM+y1Fu9VlON7tE20cGYLN/Ncc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9VSUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqkjRAAnmvqqFZLZYe/wUyKYe1NumnZ6AlfqTWDYifAouNdKk8ddxvM\r\nA3OGm5h2dBYnkjMhzIsRVRtYVT6IBvreOmPqenJGUbpxEkehZ3QEb5WqFNN+\r\nMSCJLunfT9DqPAGynkrvdZrqcecZj+fF6LEVh8S5/ODtuM9CT0XlbnsfHjkt\r\nYNbkGE3zyW68gAF61vsdC1txlCsjzQpW/xzogcOhDtzAq/4QggjBL4Oe1E3p\r\nIiXZkFMqM93ylZgavO3/xQkrU9aFQEn4uzWkfejyHQYBnX+H/wm9hZf7o4JM\r\nga5yj/9w7JKs8cWGjGObIbqLtkQL9YHWe7bWaXbofcjhDmT3B5OPNnsqHtts\r\nxxsoNkGsACIghH9xuaOlLmLpAeefpbgeQcq7nNmXXBC0YAanp1xaovkiwTk4\r\nFEmi26lnXsYvhJ/ELQMh74VO4AwuzaqM8jmKLtAYSqGR3KTlFDay2nqeXv3U\r\nN0VGvcf5ootjMaEHLyZ67IXZsSWjnbwc4udYKdelT+kHtMzh+NLVmcRdispc\r\nCGNSj7jayXpL8fPoK1z/4l7SpIXo9vOs9euoU0UBAdYUIiCie7Nys73WoISt\r\noSptDAE57hWtKqL3HfF+ukdNy0rUe18QwxnE+EC7zivWOeBovhsLdZyipTDB\r\negmIojSYiAqFdh2xspsp+CPrcqokoG8DjoA=\r\n=0z0a\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.10_1677022356673_0.37537563543745334"},"_hasShrinkwrap":false},"0.3.2-nightly.11":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.11","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.53.0","@typescript-eslint/parser":"^5.53.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.11](https://img.shields.io/badge/version-v0.3.2--nightly.11-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"d40a82e320ebb83a71138ce2dd79feceda3d05d5","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.11","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-MHuI28k/m9Pv2/HTm//xqSHoGErLGMKbp7MRGsodEOM0TA+ogZasUG8s7PkVFd1vE8gjQ0Vq5qYKf4GwoQW8CA==","shasum":"01eb7a740beb8594d0d2cbc2278a5cd3897ffa32","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.11.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBc2zkGQo0D9TGxZqjj/KOfb6bjN2x2h8fpqE66WIjw7AiAqD3aLZ4sfLFU6gBiBcBVm17kIq17gfzjddEmiY8y2DA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9qYQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqR8Q//cJeFhY6055aKQxsOPVurYXRNDdTGiuBk4gZkF8GrmFYASsAo\r\nsKLUpmHQvG1eT+zXfjYr2HKBW8kwMHBadq8vP2dkg5BOQrV8aAWu8H/GZjaa\r\nZMLIzpO3z6KU1YXP3/jj1axCSu2D40hk73JjE59Gx4VwZTethiNDd3lwd07K\r\nrUI16SteiEk8Zmd5EQiVaqOBNO8kLI2B59ZNgo/5rIZyAP83OXirgwrfXQrT\r\nb+fdv/VUhGBy60dmLny2+c+3tHNRYPwLyZ1zoWfbFlq8QXieK0VTgokIEQkw\r\nv/3rziFxCbSnHwnHGEGK/SKigmb/UvuXSaw1nexhX1jSsYLbFTtG6x+aH1sV\r\nSdfP71pF1+aFJf9LevNicZBVcloLXCgEhQDASWHESZUnF7ZFvQ37U9dA7fsh\r\n3uQAwvPmKuOO+7MCzUjxHtxFq0RT6ySRKEIqJmqyKCberdYP/yxFhQc5n3e+\r\nsH1DrjdwRKgIKVQt/QwiNcwmX62MhihoMTrKK4iDGIEXoZ1frNqtgdVbayT/\r\n5b/s1IjP0oh3eU5ZBa5/L/cMPOkXmolg0VTff0erBatR0Vd5GpfyBgytZ3D/\r\nDQzGHobENfPln7vAcEyUP65NmMWSSWCV19Sa1cEBizafdGWf0wnGmeVM4MVZ\r\n7hDERvIxZsZG9yBCwDVPCnbQ+qZ5l5q6Sl8=\r\n=EfqL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.11_1677108752403_0.30329335017410197"},"_hasShrinkwrap":false},"0.3.2-nightly.12":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.12","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.1","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.53.0","@typescript-eslint/parser":"^5.53.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.12](https://img.shields.io/badge/version-v0.3.2--nightly.12-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"d767cf13e0999de6799e3dd851fc09ee8bd36dbd","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.12","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-yUiM78ZBPiMujd8oZYCuNKIAWvSK/d2g/Ijoq2aETxGj5xZD0j0xp49PiZepe/Cqb3S/FbK1whXiiWfhAf9bCg==","shasum":"9b1df98ebfe6908c291646a488f0f3d3e1e0ffcc","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.12.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJyGK3xH59Z4NeEkWE4T+n+FvR12ZKfbmSeu3vnZkNrwIhAL5Ek0Ebn2CoegCXaogthPpYZ1ld3shJgLvKZ95QjCvT"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9/eZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqc0w//R2WxL3q9Cz0MdWafbyJpiCRB0+vrAo5VMBWcb6cAcCQL1NvY\r\nBUChL3Mdor1dKxIVZuhhptmF3rjC4KP5R/0NUT1/YdGwJoi0Y1NcP9/QYtEH\r\nmlAnqoGa7dryDKenBAND6VkilioUbf52fMbnTfJbxzGdDw3wufKyWihaX7Vc\r\nBpg5czrHfK0EHAnX9PRfNTdtY6jPrzRjSh/ImDr2Ki4tZXcLvf763kgyutoF\r\nSdNafSl/A22X8m7URDSRVsVqvUB9fwFWjgDLS4XdBpDf8tM2Vjndwa8sgx/b\r\nyeqp1CSxUmFm7NpmWfDLYzr2S3M/JXzbR8/l4MKqsj0GfM/blT/UXdJggGcx\r\nD8I2KeXr1TnoBHqEiALQljBNN7Ov7WhGL2iINY9vKll9i4UR4PcniLDmdHiv\r\nS++bKkRMOsGH6gM71/cXdDru5sk7E/v11I1dLhi3xZSkMGMwmLtUTFtwPfvU\r\nE0Nj5lde5JZJWibzWIjZET8FJ1ubOmmqPpz+SZVjJm3ySDs3evFyrn3YFRgF\r\nR8yHFjgxQLxxAmvClsmzKZLKwd40qvTTsCeX/7Qe3ZjR5JCOuuNaMZu8X+++\r\nnfJfLIGBhq0mlEinq/Nailqs0MaH6NxNzujh2ErttOeBsqEU/aceKhNe9cz8\r\n8dVEBO4cO+5l/xfeytMlZFb1FBmyk/v2tMA=\r\n=yvoq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.12_1677195161712_0.43928561599980265"},"_hasShrinkwrap":false},"0.3.2-nightly.13":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.13","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.1","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.53.0","@typescript-eslint/parser":"^5.53.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.13](https://img.shields.io/badge/version-v0.3.2--nightly.13-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"38cb0e3537a9f82320361c865ab55c32fe794b8e","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.13","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-pM+9HuXhCOtJGk48XNbNViJZaOZVEHdlO6Pi2kYjsQyrmXO0fcEjwSCaHi+ur4sBJXHDD4MR29+DxpXfyy354g==","shasum":"df9ebf580ff025e86016063597b69bfe50b2cc17","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.13.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGiGgn1S0EKH5dh50/IGaHgBlfb8R9ZLa2QZbtZ4WB1qAiEAt6aoMVQYBntuj3S/Z7QpiT1ItbWgxqhKASFXQZCsXsk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+UkUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoh0xAAnYkDVLE1W3YmBE/b9wgvZqdQQY/PVxTGh59slRQBvOXAwUi5\r\nZA1pVVszFDtlFd9ywQAOrfU2Ln7IJ3E4C12z8F6jKMC/Vrx572ooLsX6JCtA\r\nwbAQkANxPITIdurqQVRCKsJfHzjf9mqmlqi8YXCHqQ8on5ngOmtbHhPq4heG\r\n+1JDf15tk8Hk/rpGrXoaT89ERhSuKcrRrTFsjPeWFgjaxWAWo97+bx/qBW5u\r\n5sSEutyZbe1WVQ+8KCPV6C+4Uxgv1T11UeBVd79bMnWbIXMEuusbNNNWxjha\r\naq21VnxadPZcupN70pE0EWEOLJB+F/C0CiuodBZYkGesGAkZeT7AaU0hpYch\r\n6KTjE7KjaIusDp5YMdwcpl5Q+4PMbUGcYfQ81LCOhT/rg/t/GC4aue53hCT+\r\nnRqijmDyQT7Zrsc+shqUGnnFNKvTY8tGrX/oa69AX5o64C2ZPfUBjx9yey52\r\nUJQJEP7/Hd1sxDx9ILrzR/DLWsFkby/mGqDrJBeCUJTJ8ogGGBdiKgU59Ila\r\noGDM7LQo5mW2GXoGtb74aVmshlRMath3R2ygbkomNpF/WzayNMAdBjjdsPv+\r\n3XxvPGnrPPORrUgKy27DjAwF9Ynf/JbyTmVwt2NGkM1NQu1CVd9D8xhHvf85\r\nKpAq7cqjNk151puHI2LysTITLahwlkluAkQ=\r\n=3CjE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.13_1677281555918_0.5998903403504212"},"_hasShrinkwrap":false},"0.3.2-nightly.14":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.14","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.1","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.53.0","@typescript-eslint/parser":"^5.53.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.14](https://img.shields.io/badge/version-v0.3.2--nightly.14-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"eddd0afab85ba052bd8ef91203ff0501130c46b2","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.14","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-E0MhF3MwINNMO7m82EAw6r1VaVbtvB5DC7hhJhK1BytzGKBptcVBaa1hxDPfyRNKgAmIm9fQn3eZu7dR/aGkhg==","shasum":"316eb82602917656afba123508aa6a01597308cc","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.14.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCLg4KG9BE2RtKy45psm2PJYtWQrSCFgIipUqyMDVWTwIgD+bhyCvaooNe//xXlDj6RKrA+n/lkt2liOVfKWnpPmg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+pqZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoIMxAAknw2L/2Nc0VwPxHlFuOSyfMMT10qOrhDiqsxMDEkSm2wNMHD\r\n1EiUmfST03miVMnUwwJyxMWl88YfqsATpvIo/KptG6/dE7wZKsytpn/H+8+O\r\nMldmgW5YlBCr1DIm721Mb9fSoMVpOlCXUcJYbUvOilpKUzKbgCPrQQ9UHbuH\r\n6rn6DS97r7lnx2CrAorfs4jaX0Pd05SrpyT2S2X3O6RGviMLEHWk1VnW5ihW\r\nit6dg61kXPvMM2zSDaoegGJktHuCfbbtfd2vcMz0JNdiWDwBCf4IOhZRGT0l\r\n2mo0PDS8HMYoO49HnWvFjR+p/r3TsWF+IMsbggXCmm7P4yxXfnUhPXjKCH+9\r\nBBZdTFJZVWjnP5GS3p21cLdENYFydyPQEIrDb/8DsvzcJNo26bcYmf0+uBKk\r\n6dSyF7G3pQHROAFh/9fk183ILyTJwbjxNbBWyDCea+jCDxGQr7TH4eoj47IK\r\nSsIqDSKgHdQQBzxjBC5L+KGMb2jvQxtDYoGvhx19UtxOmOAx4mfVrSN0rYTF\r\nfmX47C/086Ryfku5QEiGUTDGrxo/bBhZk5ebvR7Z328wNM+VgCpcVJOllMut\r\n7KSZcbopRL6PUBBKfud2mRP/OIS+dklQ1rZRbo3E7fdUIk0jYX61Z1RCxPA1\r\njG0v0lWkjoTh8ZBq1MssatjUZLL2xD4tdSk=\r\n=5D6G\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.14_1677367961584_0.9798009843811262"},"_hasShrinkwrap":false},"0.3.2-nightly.15":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.15","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.2","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.53.0","@typescript-eslint/parser":"^5.53.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.15](https://img.shields.io/badge/version-v0.3.2--nightly.15-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"409c88b085106ee1a843804980ba3dad4ab0ccc6","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.15","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-QXcU+ROY03Dk6MDDmcceRxkt51WKNVo/G/IL6YWzyL3TOl6wyyVztjIGSRyDHrNPZd/LCEKVcjt4u6IKSvK1eA==","shasum":"fba0f8d90003c4108313bcfc7dfaed730bd8ba73","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.15.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGVHpOusTyKbIbhyQX7cpy1bI36EFzySlP70xzzU4GkaAiEAwG+CeYywPo9ew1XxQ8CBP/ZO+1zdZz6cCVBEIPDxbZ8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj++wGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrzRA//TGaV5JyD8zqSaZ956WnVIHo9T25Tu+WEQBkdEyPR/LGwsQne\r\n99LYvWCfmHsMNHTy5acw5L9sPk5WE6Hp2DXupM0hlc3Fxdpvtad7+0MqgilA\r\nnBIfS3dW52IxlXhoCJih4uGi3sDHPkM6slW/KLnW5t1p6zxxaKCE9d/BOzSY\r\n32K5oLQyRkIDhXMB1hRrNQUlpQG2uaxszff4wjRfwt5m0bf+wu+yqbvN/dC4\r\nhGfLFCLsns0doWi7nzT7iz71N4MN/86wCaQQd2tzc07SGmxuU9/XlElri0GP\r\nmC0OfWWdGQR/8GshNa5gpZs06Jv2nRl1CrHhEb0qmiMFwKYQGFfBM31nGlra\r\nVt91mQQ7qQdRjD6iJojZziywO1Z4B/mLC9r1gZVRHQcAd1CdXu2hTaZ7QdXa\r\nkbqhXtPDfZrwR365f4m4CdCaicitW0JWkM7/+lFKSMoIrrudvbwkV7yooldX\r\nJV/xVvHklNgAUgRnQfxBrjcnsuVc9Egb1y7x6cQi++Xnlm0WQ97luINDc7Rg\r\nc2oYVzFyfpU2UNI2YdvnJXEPDKDH30m01IyLDQZsaW6kMW8WojzcY3YsKAaR\r\n3MxRbXkY3iEgFcgS+R8DD/CR9SYZ4rx/Xy/0ETScLGLq2UiNA+Ya9Y/GmBsd\r\nIrHPaBEw3cOYowopzOvx62CYkvE2aysRomQ=\r\n=V6Bp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.15_1677454342232_0.10626507119533657"},"_hasShrinkwrap":false},"0.3.2-nightly.16":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.16","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.2","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.54.0","@typescript-eslint/parser":"^5.54.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.16](https://img.shields.io/badge/version-v0.3.2--nightly.16-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"2f71deb05dbee6956042ccc86ed65207f13927e8","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.16","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-aHXnb7MPIVOULVe8Tv0DCOQLxB4zzF8ChG7JSb8eXcQcvr8TWNDnSZeQ4S7SXqOkLoLOjE3a4vyYhy4jgHIeRQ==","shasum":"8791ea3372e28078c7134dd24e4fc990235ba75e","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.16.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCA0opamH1xmrpoc4lvO3uS5lDimfZ4n6vVP6naQQ3g4QIhAN9okVtjeIprdXEbJ8RY3cKtFHYEegf/YKV5o5lYYX+7"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/T2fACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmovVw//Q3mLEoAJmNeTYbNg0HcFY4O9BuT9ucwcjUlrSKXpR8o3E+v2\r\nqCnOSbfVj1GuAwQfegYwHMdPwCJ8BjdbMk29wsmX/6ZVpe3fowgBE6YTXDXa\r\nGAUIjF7iF/uDPDppQ7g5WKWTDW5DUS5g1VW8UeDwFi3J5DiITEVtEz6mHkGb\r\n0TB2HSmrqGJT1z38/PPfRH3eD7eV5kkLDgqK8FFUKuuI4ukf/0sAXAzl7obP\r\n1P+JC9UrH5/eDQ/Odg7VnINp8XYM6zpRyoLp7CKY2DFVlb9n1HcSVqOPr9np\r\nxMbL8eP5kDjUJY1y/d845w1U4iI8bzL2Tjhfwy4WqGLkJIqVhVEGKtUbrdrd\r\nAfg8Rz6w55myQg0RDICqQrxZOqRd+sQ1tUhn4oJq4jtwPbGSU8HKm6WA6aAH\r\nQJCJVeFf94dVHsHxZMpHoZt6bNZF5dG9oy8jVOeHwbsTdfrrmX/OVgrEVvLE\r\nnW6GpNHPgkqyeU50o1OucvZ3sxJgV3hnuOTLUipoCfBP9pvBNobqlcAZyO2v\r\nJCbJF8s4E6zR8sYVFSksQGiEIZU5pVl3Y9NZyqkC23jZYvfT6EU5lKwqxjdS\r\nqKObY+h1O34uceJ3+kcG2EOYzdtiPP3ton8mGUqJVQehyZCOhpocjxrMHLRm\r\nQP7EGtIhzblpOj0UvuYAsjf4kyeKo/xhb5U=\r\n=wxOI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.16_1677540767015_0.3273737573426174"},"_hasShrinkwrap":false},"0.3.2-nightly.17":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.17","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.2","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.54.0","@typescript-eslint/parser":"^5.54.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.17](https://img.shields.io/badge/version-v0.3.2--nightly.17-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"5ee7a84c5d24c65cedc41d9a9e5eb706c6b77104","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.17","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-RBowwqiS6b3/w45PyvwzfjiIn5tAzuSHz9bZXj7dgMzRHYJdwAcwTYTupuQlwzkW4og+z+XIH97DtHCs80rm7A==","shasum":"4341540bf0850b7d2f7b549624a03987ba2ce629","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.17.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBmjUSsQFBnNefyRlUV6nYBTkc4Z/KDZMDpCbhqQ9tvgIhAMRVZbJTj6ccDHQocxilgzQ8zlX5w8IMJWUJkW2hEUA4"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/o8bACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpkAQ//fkhb5l+xHdlk6IbCfU3JsvlypTstmbugLlMVone0vWzXb5xJ\r\n7A3WzjotiD8WolCa6HpmIxuXKeBfjKm+4nRRk3cc12d3bx9bcdu2LvjZE+jO\r\nglUrThK1B4ggJHK5s0XF12deV8X0GcskXqviGyvpieMD3zVdfdTmNW7TD477\r\npj+z3JsZi32R+FTB1BRMGnyaP9feNew+VxUSH/LSXJ62v01LhLs0ikcjhTja\r\njJ9aU6Tv8vDyeHWhxRX8rGOONrZ/2eo5IukLuECNbdcktXglHO2Uypa3i6MT\r\nVZIAYK4boePxeBZr9msH6FX/R5x6OvKeMFG2wrDqmH0DrNp8ArHB2Vfas9Wr\r\nz0TQjLGkl4jmc7VU+UIEuR5VO36zWaAWVQpNIH+qqsoOWeT34r13538Mtc6w\r\nZrvAESsTHUs/JiNz3CJBPuSVBp0euzaypGtdpLFb5mgCZLsVnfLmCwYDzDGY\r\nmp9pXcY4LFSBw4GiF4W3pbziLdB5qyNILG4u6BeV9cDI8UxmS7A5UGGibOkC\r\nO54tAO/Ja/7ONG0YMgIk41ZbPIiJ1Npr7p0np5j3Qe4VbP+YdC3v/KKjJM9E\r\n8y0ealFEFFGvQZLlRa60NB6XjqcdHCbtS3DWNGhrnh3ug2POw3WM48sb7c9m\r\n1TcSLkYC+Dfe5IY8AfGeiARlXNYRCJGqBUA=\r\n=MTPJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.17_1677627163571_0.8394303998635424"},"_hasShrinkwrap":false},"0.3.2-nightly.18":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.18","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.2","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.54.0","@typescript-eslint/parser":"^5.54.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.0","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.18](https://img.shields.io/badge/version-v0.3.2--nightly.18-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"e7e04fca900df09448f47ca25f1b1a6e7b635595","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.18","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-AVzgZRmPlVZvpD3U/6a+JTudeX5xOhw6cW+k2BknfbD2Fqggfje/NTJc8tdjGLAJOTmuvnoKqMKlsExvUnhXyQ==","shasum":"bcbd0f3dbda15ddff7a82b5b1d91ce47ba3be1e9","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.18.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/32uVIzcOkP++gqo5p2dKWJT6eDcJgECEKtOFDodzFgIgUA1JngEsY6A0f6qID/sHh7oSYF/8f/m4d/sMEG/AXws="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/+DPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqguA/+L34MaBRKtNdxHo1OhKyJsLcJUKpS2qWr1ETN4+UM/1K0dePH\r\nWKjykqevZHMlKDoYT/GvRt/IKAznkOdzaYntXJWpeMg0R0XOHZbNU5kDLdCA\r\nriBUv+9rNJBJrKCt8sJHZ6DmdxSxNF1thYfZep9nflsU1I7A5YpeVGNdKiyj\r\nteoCww03nqsaJqnng9en0J5/+u5TlYkL9ZTlY2RGdqvA6Y2iXTmvqDerEF+K\r\n3Wn0ge4zrDqorIwbtibCXUvIp43WLz4tJPxuPVOBLcmwWfGBxuLNqUW4a1iG\r\np8O7sNQ16agGTmo3UbdR3OJPHf5jZhHxIWVOEcCLHOkyXsDtmAIVsrNX8dpI\r\nrqj+Llvn5SNZAAXvoghwPp+zdyXXEEttmF3UJdXjl/rlN8bZMo1Df8fev9fV\r\n1u9Q8KIwsQZmL1IO4MhddA+gUNEGulsymX0AyGWGKfs0Pi1jJHKROJQR8FOG\r\n4DCduuIeedl44F2FGvR9Kmlhr3jMlCu6qBeeDUy27pV0cVmABayTZdhR7kJk\r\n8ZiEpO7oHPwPrxfa4NVoOLiDkM1H1Y2a7WxCnnjm2p2NhXxfEXXyPTp0IB+L\r\nTu4sCbJzTteEEIYQToylzxOGyE4JUHE65ifcnfEt6qBHww/6++lg9Pc+gxkt\r\nr5VRw8eK6WZqJaRAv6VTG0/tJiO1UFdRbKw=\r\n=F0RU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.18_1677713615054_0.008015514081148645"},"_hasShrinkwrap":false},"0.3.2-nightly.19":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.19","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.6","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.54.0","@typescript-eslint/parser":"^5.54.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.1","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.19](https://img.shields.io/badge/version-v0.3.2--nightly.19-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"f45efe345289e4db308dcd2f7458b858f283e65e","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.19","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-4GJFQw8a+UQnT2xFJxojmmd/BhDLYaAK93JzFFBQqVCU7CW4SUW62gGsnGFzANqZS3iEMke5KRKkoMuLPuF0cA==","shasum":"5a4c11aa7c4d521168a7b3e4e94d4b5f44af9078","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.19.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICQZhve939BbYz3nkRr91KW+WSb8QOUTpUC+OU9hi9sDAiEA7rDk8WX6ok1TDy23g1lzuSHgjYINLfhjOm0pHN5efeU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAoOSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoERA//RCXbLr+3V6KRG/4S5tlv9wnxplE9Nymq01qwc41t4bFx6fc+\r\n8KIyEHPkzIHJWiGZ6tAy+pelZTS84taQSGqRAlzDNDNy08bD+5x0nJmEise+\r\nlXU7gdfnhnVK6XT0ubRUYMnFUIc2wejC8CxDb5ZDn3nbI0PaeXP26yMSF7Q6\r\n8022D7SA6EnltHr/csaj45IBB6zKD/f9RfgkLoQoe+lk81RXEVq10xSbFvI/\r\n5s5fo+9c9HD9SkO455hUOfk5UHmuDBInc9GsGGca/60J+EcFyukFouuozbv4\r\no9etVmAotXEH+CB/22W79/lRLEStpm6GwAIl/ukVtqN4WKgmp9qKX4UIevVA\r\nOIjP5rfUrHhfv+3e0V/vDXlo5jUAcL7mFPW1Tw6rKjy5zr+xWiOWjMa1LVv6\r\nSvcJBNxj486w+4zYjrGruzyTxABJBtVQiVcEb6s7rAYrkBMkIVGSKzT+eLVN\r\nj9krUWRf9zY1LGfviOFE7kfafDZYiiMNF92TzewJO2iR+CBTdbKLZpw5PdTu\r\nfEOq+xdNe7HTN/LVdcX/WqTpZ4tLV0E0swv16I2dHJijoVY+RkeheY9Um4Ji\r\n65i9+B6cGUC5QCkDqsywPsV5R2unsPgWHqJHE2ZsLTT5xTGP+OrxxY7czfF9\r\n9fP03+zfVxi1aEd1wbrp/iqlXRIPhaEe9co=\r\n=CS7X\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.19_1677886354176_0.13072608400185692"},"_hasShrinkwrap":false},"0.3.2-nightly.20":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.20","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.6","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.54.0","@typescript-eslint/parser":"^5.54.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.1","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.20](https://img.shields.io/badge/version-v0.3.2--nightly.20-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"f0759e841bb38e5eca2cff8a904dee38e60a15d3","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.20","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-h5Eox8poz30BSUYoyw9Ll783BKBz8y1WP4yLWZrOelJwj8YXbdOt88VoGLHZwEo3eKi/TKpX9KI459Y7T1tAIA==","shasum":"73ea8118a4c9422f678d2b607199dd6df8d5d49f","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.20.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDkp4wopTWJdQolNYic/l2Y51FItBGGXUJxSLqXLRVpiAiEAkw28FLzQ2+z1qVN0fZ98h5nJfxMOZ99ieOAgczHOKyg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkA9UaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmokXQ//Vae+FuqxCUYtXWAYORXvYNb5dRk/VM5nJfzlaaUonGo3t8BJ\r\n9edYhZ41Mzu6B4ia8i2EOvu47lLkUUINFcRxoDMmq24TIxpHtqbmtuMXuIXO\r\nJrnDD/jLZzS+gCa2LXNLvWuXI1oeRUNv88dndttBe3PZ5udtB13iruqANsCU\r\nQZorRTkOUsqi89QovtIUhtmIFIpuJv9EpbyxqswlPD0i/coBf7+XNlzOdL1H\r\nYHvjh4Y2S0jJXsTITG5FW6wSGA/3nz4Acx5YbfFOd+PQO4BedeOpmUnh1+v6\r\n2nhvv3/6dfFzCo5hImInumAIWcITRPYMCvolZgnCjx7Cr9nbQv+XUQ/0fWQJ\r\n0FahYbqLFEbv2alcEswvqR5yL10iMUUDFcuGMUDhMZ0owUcIpUYydkzeqxbC\r\nAJkEsyMa9VaugSOXSKp0/RHjDPdHiUdXH8xCiSijbJvf4gw6cCzm9KVxYPYu\r\nP+zbji/sZY/J0DLJ4xBxhZgjrBZbvQwy1uoeaDB2Bk45TzsP5Hx7EviTTUK9\r\nQV3aYccnF2DTdcFH5/O1mqkzsI5DNzHo1lGjvrrhLL2Qirt6ye+yKm5s3SZW\r\npgCP5T0jn4qwQbFfZNsSWy0JMOv2k0r9z8sUvWrkDVpqZ5C+g0kVwOah9bc0\r\nAMDGs7rHH1y4RhzACD2ebbz+oNJ+eijgdJ4=\r\n=TT3z\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.20_1677972762416_0.26581057367515215"},"_hasShrinkwrap":false},"0.3.2-nightly.21":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.21","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.6","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.54.0","@typescript-eslint/parser":"^5.54.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.1","husky":"^8.0.3","jest":"^29.4.3","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.21](https://img.shields.io/badge/version-v0.3.2--nightly.21-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"2d7c851fad988a7952290bef5295b0625083b4bf","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.21","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-duzHUGxEd3VUbR5jCHecW/A++GwjkBFoMFguJdLX/I8Bjr056aHK3CCdF4K9gsihosqstS9ppy7qRjqrSm/sXA==","shasum":"62320419b6a698875ab248db4f51da958e4b1d18","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.21.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICoYI036c6aTl2yP7tcIudAf33GBsGn/tXuxRfSLqKKRAiEAqWGrBOq7srQ91q7lRIXwPip+Zc0an9ef3brvk4ffE/w="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkBSadACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoIyBAAl2QHTZs5lwnLKt+wX8UchC0/ha+NfPo8FnDmUb9SHMJ+rxFs\r\nHoLxyMzD2Tsp2ZCruMp7dOCKMQR4H/L1mYm1L/RsdC5WUaUW03kyR9oGUnB7\r\nYY/o7d6VAEu4D2+cw5EWGPjligakSWUKNwGRY9Bydddhs5I5YqGHhYKyvyts\r\nlAeeyDSEQDqpOyT0u23J3uDy7Yd446+NoQ7VtsqpOcSkhM7DbXiGYeFbEdKo\r\nnVLYc4jpGyCYI/9eIVnvJ0rPiaSER2qcrr1ssN/TipeUatVSUrGZJjfkU95Y\r\nL1s/CxZW+tUxoQpPey7Ex8l+2Tv3FmUXgJhIxAC5V/pDoET1KFRyI0KzNevk\r\n2IfWjYjkc4rH+qMk8yNMDoM8etZjruGo88yxU8fybXJDXOr89kO9W8aCaRbo\r\nEYwlOMxkhjJMqZzLG+KRgKtHlEzBJ6+ZArxLMC8Vywl0j41xrXrfC5J8WUw9\r\nIDh/GKpH4wzDeeIh7W3dRCyBpVopHyD+fomet+93wWQYONBclwzSudGgJCDE\r\neRQYVFS7G174Z2G34768ZN0gAouhW7q64BiPFC0OkzPt963WG1VRxtgLxmnj\r\nGdMwAO2TMneCY3NNd4HoSGjqVWpRqdQ4pjKHG5T66I4YmYrlMSKTtbC004a0\r\ngrNaBpX6HCvxKKyfq8tSo9RryGRRK/xWFFM=\r\n=yFNm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.21_1678059165346_0.5407243112139035"},"_hasShrinkwrap":false},"0.3.2-nightly.22":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.22","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.6","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.54.1","@typescript-eslint/parser":"^5.54.1","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.22](https://img.shields.io/badge/version-v0.3.2--nightly.22-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"dc4920a5a553ffe845c0962e71b1de8317592431","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.22","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-dypuE1XZdnk8cb3jGqoMK0kQ1/bpmXiTLspWSdX6EFfUZouuPWofkuIV0JsGcNQnNvTlUHng6I3tnXuJCIPayA==","shasum":"ae9ea6b522abd8929335d7379514c72f7a614ad8","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.22.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmmoD+OH77BGWvhSOQntvjK/ih5TthoytIss7INYvSwQIhAP4DKcFeIuLTCjXbHdlhSW6thFSxI5aDEHvpDPGhfkM1"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkBngcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoQHg/+P8T+gateai0ciDBSJYiGHGBXWQ+ObIcL6tcf2rLNtbGfde6s\r\neTToZzChrD77a7kZfv0K+jHFzOZ7Z2AL0qMb8Zg0Brf04a4fU6O3I5j/5jW9\r\noH+CzwBJcvNQP7QwvmDyEHuGotNLdDSzjqCQeR1495+3ewlEsL7e47QSOwnx\r\na2P5hSBdwYgJ0eo/whe0LF+IpGUS+TWMmdVuA7qR0FYDPf6mPepB1C+5YU18\r\nshjSPFrCcMwEXvhQISioXyruaPjfoN9yYSCluBco3Cd45k20bvYXYTY7g6He\r\ngAgjZ/DQmL+aO79UDfbZWLPV/57F3GSamADqbMRlL2TituatIMWEQJOJNPj3\r\nYYbLriyrMK4Um7w4J1o6tdwcNARmk70CV89JEVDmAe4ND+X9622E0jXvSS6K\r\n6LHodzbqEf2YlvuMUz6C693gI/Ad6Lkx/DO0tvTSIYk9yhv9S5bHma1gH349\r\nvhMDJ4hHs++fSLmjlHSUA2qPSoxH00dxf8PGV6Wp9R4wr4+P2kCUTK4GGsHX\r\nVhiR/cZEJbRJP8xnVtMsrOALk44ZBe4IU006aLvgKpKOPHylhVaWG6wOnOid\r\nlLsHSeWvatnTgHyIUTi8E4uXtwPjxXJDJ34K+JgsC5Exm62ppR8bCABe6je1\r\nOfQCgcg2IqGI3i8hrlgHVDDQN2p3R8VQPlI=\r\n=QIMc\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.22_1678145564651_0.35659934226831114"},"_hasShrinkwrap":false},"0.3.2-nightly.23":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.23","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.6","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.54.1","@typescript-eslint/parser":"^5.54.1","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.23](https://img.shields.io/badge/version-v0.3.2--nightly.23-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"0f31ab5b54748e85500f38f738966f2eac72120c","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.23","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-2/ZeH3dNNlzdCYCV6Us6Ibuy48uukXG13Qo8OZdJ/MkMOJZCJPMziRWQ01VdEEWKYP+cYL4FySyZEnCxRSzyzw==","shasum":"c3b3c8f9c9c064ae7d054f30022114cb12fd81c0","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.23.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCusMBhvUu9h/EXWK7EFD9cxx51L030nIllmd9qDV6sAIhAMliOmu4z/+d6kGs1zEGl+JEM05NJFZmaGDG7Sj3VqiF"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkB8mjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrjYBAAiv/e9LXJgLEsysNtPqz3Pj56d1AdlbVE0Jbxinmu5n6iedvk\r\nV/ABGkZk8q40k5LPl4/3IFs8xFHtLw5CS+Xa+mH8PBCmLQfNSetrb4XKFXsr\r\neCoS0m7vsTy8p/AFrQsO+cw4pHsGUYX8UP1lYB97M9z4Xzu3aHYnM4Y62qnb\r\nPiSQVG1k2io23tv8DI3UKQtVLu7FGCJmRSCg9v/F1Xq/sSxMiw56lfSbOSfR\r\nyTWtb4NTHcntfDo1M7fPz8VLUFguNZktV+M8vi/LyEdZ0bF/s/exAGeJLNTL\r\nB3nIXLcXAWXogYCpz7OcW3T/I8Ye5rZe3Uf9RjZCNvmuxyS7HnCM+ix0PdXM\r\ntbHBfVoGAtpClUlGB/5M7OtVbK5r4v731/aZLbAzDYwUtM0pXm5bCo8hrarp\r\niIV/x+ZD084QpmXqkuTCxwG8ccL4RxxO7BuUxgmS2JnI6iJUDXjRNLQ7SRE/\r\nhX3NioKthAHJdhoH4nH5gd0JdulUq4KItqorRFpu61pM14plJJ5MNXUhfrQm\r\nzItP5s9A09WkOxf+u28f4b62oe4z6GUfW1fZ82PINBSC6wEMkxdC7NhPUYQD\r\nT8H9fWGkX9Hg5BuCuhhpzIqXG+JJ98lutUhL9ZZnayVfpYePMq25lVBJZTr2\r\nA191pBfiT6bVXeIMHUi5EBvCTGdBsC345lo=\r\n=Im04\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.23_1678231970908_0.8245308554904309"},"_hasShrinkwrap":false},"0.3.2-nightly.24":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.24","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.14.6","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.54.1","@typescript-eslint/parser":"^5.54.1","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.24](https://img.shields.io/badge/version-v0.3.2--nightly.24-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"a6f3677b664285ca439a4fd8672ec20b682af842","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.24","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-j0GzATGrkGohxuw1uiexJ7/nermnIouJZ1m+8NZFP2UJBu2hZng0SF+kTsAQ/siJ+lILaoQaoehPXFCAgK4Fmw==","shasum":"39a6c14a41ad23ed7f87236f413430fa78afaffd","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.24.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXKvRf8fjQ+RF3UYiazHOU6JT0WS3Hr/iQZ8LD7gFgHAIhAI1K9Vf4e5ZlrDtCcFhpSpm3g30vCPurrgeNR8Yrj+ww"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCRsSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp0cw//YR/0MKpu/ivrCDrZnLeoOf8moOWXBJK8oR6bBNTGhG4JDahs\r\nXqqzMOpSTmRH/cUpkhYJDDJjnZ0WSP9g6rrVbNFfPvDP9+Li9/QjSY+jMQNp\r\nCXfb14yRi5N/ExP096yJmu2hin1pzPG9qtHN0BLSBw1twmdIFMgP7CcFVNmz\r\nXKBhVVJ4zI+ZS62lS8nmfe50kdKi/6J7Jr6Mcfoqd3xGa9jHTFKOlwFn11bP\r\noLDqrkVwy2qxKy6gRX5nYRO9x6uY/Kf1YJusevhIqYptwTcrkQ6RBNaYmtjw\r\nh9I4OstItZ8wEX/FkJtvp/dDBWomqhk7cfNNrPP4UZ30mJ+kCKbPUFXDxYpR\r\nMeGmcuzNIGgWfAEg9xijyUn3SLx9tkpbYO9p1qSppMXeryO181buPLdy3bBI\r\noNU4BOYiUd+Bd0oKB8PTsZMD0262Pie922W8DjdHphbg76ThYETwM/HVZII3\r\n2/CORQAf65Mxre+sYCTedfuOEU9HyKwpZAoKisfP6+HYP4FBi7dhMtKBBJep\r\nI1BmkgkQYHePvthYzBcCgc5x2IzzU/4dLr4EWpbhzpXm8ylVM81tMQmAirnE\r\nRAuNbeWevKs9IsE489+YZWR9vKXxFRAJzfjCDfRwBpBZTRdOqEohBiz8ZPDK\r\n+WHaBE9hn+00kX1JAta9Or9RtCG9wxA7wQU=\r\n=yu5I\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.24_1678318354781_0.11489930032137652"},"_hasShrinkwrap":false},"0.3.2-nightly.25":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.25","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.15.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.54.1","@typescript-eslint/parser":"^5.54.1","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.55.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.25](https://img.shields.io/badge/version-v0.3.2--nightly.25-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"e7d7e9994a25b2df3dd7d1909f40918d1c847d68","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.25","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-txJfMfVYTdXk5K0vSEnpjOnLfsMKpfWJSrEfhowCFWL8omRmLvbPRHEQhZ/E/BflYbBJCn4Ur6GUkNsUZDBOig==","shasum":"a8394d67ce171498e7a5a5d25d7b1cd70f1c14bc","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.25.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFlMVvZqLdFeH8irs9/5EIGKt55vqwmkxZ/9meaVtAucAiEA4qu5S01etKxG/ql1fl77SQrhRDA8qSYiQckWI7o9HKY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCmyuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrheA//X3D51fg40ytiEwJQWmHBRf6Y192DmBvITObn6DS/9CFSvTMC\r\nFCS1eU4DFmD4rL8lORWPtQiH8yhlbgP2PtwNSOS4fyqU9fbjFFicMFhUm2We\r\nISmqZ1UhuV2z7yyloOZCFODb/DANnFCbxjTURE2UWncsnAi8zbYUm4GTHFs1\r\n/LO8Qopbv7SpLBJks7DPE3yFQg8ntWxGRJ+VIauNTy3BSoXwiiV7QYLZnpfC\r\n9CPebmE409Hmwe6wmbsgcmySGHzRHnl8gQs27SCM8z7cQBP0oWV+kXhP6gJH\r\nT0Zj97PpJoEDElVSzh9wSwCENBV4VjlVfGGTgCHZ547bn5UeLYANrDSU9voW\r\nmx6JMf5QLIWfyphlJ/ng3ZmHgXlTz5LEvjT+c3MKk9xTxyakg8brQN8S4R7f\r\nxpMHkIIrUgDKgrJyBYlm2vs7JBSBR9E2nlGYlMMvY6YCElgj8iFDHpmDTls7\r\nO2Ex08DC0FPblT5A0+ZTxNt8EQcGgoboVr4Xa1abMgYRvOHky1sOEOR8NSMq\r\ng/NQ4WVpg7UXv/Bln9hTXYAu/a64Jnr6BtIfSNQnPUY2OXVhxyDSKOLvz7pq\r\n/ZlykRW1E5tfuKw7P0EclKCrZ5D2LL7xPFfwXA06sTQxE3NxAcAE6FcKDdp4\r\neotE7X7qritsv4+MHOBT49DyJtt8QoEWz14=\r\n=EdFB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.25_1678404782254_0.1098093256192707"},"_hasShrinkwrap":false},"0.3.2-nightly.26":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.26","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.15.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.54.1","@typescript-eslint/parser":"^5.54.1","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.56.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.26](https://img.shields.io/badge/version-v0.3.2--nightly.26-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"4a893fe9183b028ea477bcaafa5a8d85a2feeaf2","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.26","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-P8cwmaWuSr+YdBAmcpj23+l8dGRTVYlLIEbqJrkPK6QQoDSejMMICgyMIAwGhBTqrY3C176mz2aQccKa8bQzKw==","shasum":"1e701c9045ca572344c0cc1b45f4a0693cd102bc","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.26.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4gmFP/nROVxYE3ax2KzsN//CvDu1URUOPM/tTrOmdTAIhAL1RsW50JXtOTpWhH2NvsL5jA6cnG4LpOU0biFIElqFE"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkC74cACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqQ1g/7BE4mMDaEWHhAKeTVACGWSI8Mh58i/STuIK2UeL9Ay6MWQSKL\r\nuWKZ3alQqqqJ7TD3NHxOsx1lWDxhXrPR4Rltz3Kjy84viTtWc1Pomzx6BQir\r\n4LAnnFLsUy8MfLMPaLuXoMNNs/dqdZBS3PDClKPu3mIbdU8tbuW8efp541h9\r\noGuNpB0GHAnMmm15p5OLiUnBKSFHY3gKt9N8Zo84LvCcKdWy1hhqGIcyzXP1\r\nBwqhTc6jtfJrO4o/ULh4ibi2VInUt4TLp7SQsb+4MXEzfEo/zd3oze83FOAt\r\nabl0iEjQ2LjM0sV2qJOCxFGxnBVu5x68ZuMfwi042/1Zm1YP1JXUGxA/1fNl\r\nZCanoIALtiuDxkUmqBwGMuaWu1XNNwxDjxZ86ShchgcjCSpA54RTgelPm4Zz\r\n0uRGkB8Dcuo6sUZi0eqJRYfgkGyFtyrCwVHfNCz3wKPWSCiTO0xDusBTDUtt\r\n21kswuLvYl/g+T3zWk+5ipMbNsZN+slE26BccQ7dopq0IQKFm8bggPe8nqhL\r\n6bQqZih0xUuCXNmeZGi1mPwxMzrTTl+t34TTVdarsTaQVUIyEfggeVoYqpBf\r\nwkV/5vz4WRw8JIIrAWbNV00TEXsWDIeuFkGrxS3hBpBWVyttrC0I9XpMUdPF\r\nf6/09CJnSg3QBel9p3B+axUwUPYt+FszYaM=\r\n=QPCG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.26_1678491164574_0.1677669363870644"},"_hasShrinkwrap":false},"0.3.2-nightly.27":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.27","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.15.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.54.1","@typescript-eslint/parser":"^5.54.1","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.56.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.27](https://img.shields.io/badge/version-v0.3.2--nightly.27-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"9f9b3ba8ffcc2940592b80bae947fa6feb3536dd","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.27","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-B2IN0lJ/zPZlX55WKMECTPe2bqsBTe6OQqIf+dzFnTCB9JmYjqAbWFakmlsqijOGPRUdn3Kiw+5kHxXwz6NbZw==","shasum":"cf71712ab473834d75ca62bf779394977bb02d05","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.27.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGYsB6mNtwiUtjKKHU8fUhQh4vPWgAfBMZFRpB77PdwiAiASYUxlHZqca5WyckJLJ21Y8PzjXCjBw8GFUFL+SVaYAg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkDQ+PACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqAlQ//fPbXDX92bOTNOZLsVTg8dBTbsuIJUxFsy6Bj2JtzrPuiOv2B\r\nmHLvRDL0Y/lc6OcTmng67H0brU9hAuLJLd8bU8OrjujME6DW5ISFmgVeSzou\r\nx0JnSEWc6v0XZKc9o3iFiaZubYV+accW4KcurtWs9lU6OSP1JTOOuJT0q6vD\r\nUVO3ae+ofcmrVQi9e+fFIPDzsD1Szqqwyy4rY8fS+vORbHsD8nVDUY6hjCh/\r\nt6PFniirdM0VUcI1ANEriSuCnitFAhO2KQI3n3VZXocSoOr/in6GiNTnSFDm\r\n9tfdpbQ9sEtg+3HgxYAtHsLSxJgNi+tad9FjtegLRXWj8AIE5M+tWlQZQbsk\r\n9pYVgX+gK2TuW0ukvtEryFy0GWeYHLHfMYoAbWegR9Rs+mkYxBg+zAmTieEO\r\n5fbTp3vs8+Gfa2OAKjQzt2MEYEWPukHR0rbH6PksB+UpW8i2hKB437m7vFV6\r\nPuz0QPImXiXkbhNudQz7f7JciOKC22TIxYLaBX8RpozkjpfEcpueO3Icg/mF\r\nP9WFq00DPOd0ZO83fY/YZ8yN6m/NvgSrdQm2ciFc5vuUMiZbbrw1k2hu/QCY\r\nN54nCV4Nf4v46IUiMwOGjYxmowxklvCiYaOIH0RAcze9ThT9DkPZYMW3HE5W\r\nUYM5U6P0I/sq3aDI3TCSfQOdEzr6ijUzIgM=\r\n=qqPy\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.27_1678577551697_0.15129899234905753"},"_hasShrinkwrap":false},"0.3.2-nightly.28":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.28","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.0","@types/node":"^18.15.0","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.54.1","@typescript-eslint/parser":"^5.54.1","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.56.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.28](https://img.shields.io/badge/version-v0.3.2--nightly.28-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"2c75fe6c20bea02a48c7960c711d9625e4477e3e","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.28","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-yFQsjgDLhZrv3HgGPU/x1qyMB5lL9Wq8ZGZ3angw99d5cA1QrQr7tm8bZ8FoTCbD+jSklzCjMYpMy/QeQBdxMg==","shasum":"188d54b807bfa20d25830c397cbe8f3a56c21cc6","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.28.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCoR8BQnYj6undF5hZyVHvljAct2VHK0WirLpECvP3G6QIgDu2VPycCL50Khd/cbFJ9eOPkrW/sY0MifdcrljvwPO8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkDmEJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrdfA/7BPYi6hs7IwyPouDqdz1Mkf3JJNIP/3LrZfTVZF/BQAe01+8u\r\nOZYuoHOR/ZrwCUgH67/AZwjlg/ZOvtDaxufanDYIpMKb3Q2zm88VdzOD3WUe\r\ndt8s/86q+5neNDEJ0wV4E/aTct6UiOFovZQGHMFDfwN7nPpC63jVWPQKJnCb\r\njFHKmIVo9uCdu2pUu3iEUrE29OgJNt3nmYaJvDjsB0ReSgMYorFmEOhD0FOC\r\n05KQwt8TuoSWhv0wZJY+7uyVidjWEgiFdN69PMFM0V+qKcjXAPR19X/XckDM\r\n6dmJ+m3a4MJWteoZrjY61nc7C6AW3xYIYX61mcGSGEGKTP55f4CqZn0mZTUV\r\nE82lIn45jRkkcTvicdxMIIxIFQLcvBEQV9DKlmMY3FVjnQL1xiuA5WIomDEc\r\nKRrPMjptxHsGN80ZB27yMbjBGe+JRl4Cl0ype4JzFSXYL/K2QbZumKdSqF6N\r\nZUcfcnjkv5IbtoPETpFGeFCAdpk9dqUHr9iB9tS71mb1JlHeGJL2OLyl+8MM\r\nz9IH/nAw9lbtu5VgHBUUwgyn6pnqnkq5icSBaZGmBwMHo+fBNpwQP/KHhzeW\r\nQAxUyQYrs+C77Lcg/ScZz+2qABX1y1MyWVCgWCoZtzCPyZvqKrWZVGdHxltj\r\nbjcAEGqlbMHCKJ31gJb5dUd8sK1Rzp/hq7U=\r\n=LOw+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.28_1678663945562_0.6756344268425654"},"_hasShrinkwrap":false},"0.3.2-nightly.29":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.29","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.1","@types/node":"^18.15.2","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.55.0","@typescript-eslint/parser":"^5.55.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.56.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.29](https://img.shields.io/badge/version-v0.3.2--nightly.29-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"d0261fe74fa087c469dcbc7a2fb1b978b5376396","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.29","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-yWSbOBe1IZHbEMc6U7PR+MzbitR3RsCMnYa96wrnm0en7mC4M21Mj2XfaSpR2RwAzKbJVT4VexLP+iQvdqmuSg==","shasum":"3b5c3c2e475383c6a79a7b74db00576b2f054053","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.29.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEfhLIyZnAP8o/aroFml/7ACj+5+77cydDmNZrgt19DvAiEAwyeIwxPtq0aV8zg+VqXjfnNh0riwtnntO93483sLxQE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkD7KTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoWMg/8Dy8btOK8Q5BSsXTQqwFmgqa6Hu4j8YX9S8xwja7AfqYTAPlf\r\nLZF/zxJwREBxo+6GvsVPVFMU5+A/Of+3rM3DtVyHUyqU+kNhnbrh66Z+AZOP\r\nOprR0aUQze4OxtC/7dh98vHvBMEmlQBxBIq7aDogB1qCMCY/4dFQtUtIwXhr\r\nVbCMG4vXl1aQuyzWfTG1NtaiAe+6DwjOwT+u3/v0/gdbTgYHJ8ekBVjXB270\r\nNvNh8k7M4QaO+wceeqdS/dpRoJchjGrZUJxY1Ac93iHHkF0bP/7cNCYuJvLe\r\nNb4/OjlqTuspHZDbRe5Jy5BSQrkKZ6JMGeBzkRYBTRf4JOXlqdvmjBlY0376\r\n+fXzCznuKI3SFz4EaQKqadX8dw2fabaQB2OzZuW8vkdn2dd/HnhVMQMEYB7m\r\nL4uGWXordLr5+t80HTD0Ezzxc3M+llsCqJR61pyyn76t4BSlWphesPR+J19v\r\nhKxr/uMNcnlqVh3YyeM64080JqpyDmAaAuvNPop+yWtXkTFQ6V6HqOtx/6ZJ\r\nUf5tt2kFFN3rBXbWSPsJwwVtB+Q9uHIlxfo4tUD09/TSVZUCG2Elg3ccNM4T\r\nkVUGeFmf1RVtNL7dUPsvgQc9dAxLdKJtp/5R45A456ZTb5qcK4WeXKiVrd1P\r\nNBO8ZqhrUjmEHew4AmOVwrN68E+h0NMSz7Q=\r\n=+aus\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.29_1678750355128_0.2745418953031753"},"_hasShrinkwrap":false},"0.3.2-nightly.30":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.30","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.1","@types/node":"^18.15.3","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.55.0","@typescript-eslint/parser":"^5.55.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.2","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.56.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.30](https://img.shields.io/badge/version-v0.3.2--nightly.30-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"41c0dd0dfe18af005ffdd650d1c1fcc7edcb8a82","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.30","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-RyFj8Qpm8JFxox4y+Ko8oZdrogOUKKG7eEiQ/J9lqcFlpF1Y9WUceYmvCuBEM8+2/nAmj7DtLTSqgSn7xvdkwQ==","shasum":"ab264594e7830660f4d26882a3e84f5421546e35","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.30.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA8s0OzwS9nvOPalwV2QEvBysgMbgmTCjYIn9t0ScG03AiA1LGqr2g3Btsyjd7ZxASvEGISZ8SLvpiU52FFqmgzfvg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEQQrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqQ+hAAng0lvPwQkNICZHlqcN0jbWCY3uxNeolBQ9yA87lD7SmNUx0z\r\nnFchOh9g29KKedrRS9f4hSA8ilcFIaAYkrkiZWC8YXCmgd8P/F/4ZSMExuw5\r\nyRNVwzt4shJVhF+hPrL3DP8SpW1RPWNpV9cx4tghPWpys6zTMJavRQXsnxh1\r\nqaIqFkURqXOaVifOZ0M4/v2xWWcwuUDd+kD7i5m1CNRz2IOb7GqLBmcR/2Xl\r\nsLG2HxbPkrgx32VkJmESrCSX/UgqSP27RC5n6qvN5oAZlKb7JVZobkeeH5Yy\r\n9msZy+PaqoIldi7QhJVMAr2E3s6gfqSg3TH1eDk9XwBBidDvu9bRl45iP8L5\r\nzkqPg00wXKwh589vFndhV+VyHUIoMz2Ag5KKTjcUleh7k4QXWG7A0AyP/zZC\r\n2JLbsY9fZtcfWfA9Lo1diDawAUzgA9PceP8rKmA8iguW2xaqbx8LJjzrasDu\r\nyAKLp8Xg600XVUdiRkEwOoLt87neBpHhTGfPWw9vW527hLv7SV2Vm/0gohYV\r\nbM6dF1vsA6PHjFoRRfSa4qKBEK1OgfObTgS+OJFNv0xq10C2MNiUcdIfkBh9\r\n3KyH/8jKbCkqmCpx2Qo2s7bZMFIv9RYmbkY5CL7olR3G5Bt+3wcbg9xb14+d\r\nOxKJnyD8dKewqJ16VX96hfZaaBIPiLRiJ4Y=\r\n=s8yP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.30_1678836779689_0.5396382894129306"},"_hasShrinkwrap":false},"0.3.2-nightly.31":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.31","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.4.4","@types/node":"^18.15.3","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.55.0","@typescript-eslint/parser":"^5.55.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.3","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.57.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^4.9.5","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.1.4","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.31](https://img.shields.io/badge/version-v0.3.2--nightly.31-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"3601e57a2d715df941a800e2e6a11d5d6b4fcc9f","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.31","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-IHzREkmL5ZFTmJheyh+RLL/4nLph4tSCHwzgGY26HE5760Su+aYJev6vAGcaf60N0NU8Lk1X3BcHeR5oydyxLg==","shasum":"9d4254ead4c92708e153fd61a15e584a9fe808a9","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.31.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxCj+UNzXqnoFv4bqZZ98CW1LG6JdeapwdviWPuwGVrAIga6Y93jMBiY2M9CU3hN20v06N4yYMZQQgtX94krFq0Uo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkElWIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr+Og//UiH6oQTq2mW6fbnpkXmqUEIwcBQJgtgZK064iDVDj4PbcCj0\r\nCTEmYk4wR5Fwkn6uor884R0LXGtjhY2DXd8l0MjWr3SxcegB7uwhSAtQ4XP+\r\nMe6k8swrNa1sOqQ6x/uAsk0aAAxUBe8BOt9LD3AQ7AqpOpS1tmTUZfPdqV/l\r\n/0TcMFdBL+IBCyyID6quqmEcmbUqcD64tRchw7x3wlvDGbJLflE7iIHEjDBv\r\n5Dl6Fnlp6MgyY6jI5nnIVIyLSUmmLEZ3ZHc+yiOZkg+KXbHCyx//339xCgny\r\nyJelWRHypV9OwTW/uvmo5fDqhXplA8YpAZ+X1/oVE0vwaKbGSUg+G+kIpcXX\r\no4uL2WLPjHnElvUBRR/8JL67BUVxJbVw+tnQDj98w5fDalmwYHstu/3V+7/n\r\nIxeECb07/JuX9vH5BZx1h/guPeD2K6ZPE1E11/QlRA0DkULtwetoLhsXThd7\r\nonRTYaVGp3nobbPVRGb5H2FjMf9UB74Ps/GsMWRjv1OgwLcPMNThQNo1k/HR\r\nvNkwZAsoyRCirGKjZ8nOiQS2UUxgctaXptXhukvewdZaNIyJ+40iBcedHcpY\r\nVKQ4TCZgCZiKNbcBGbpqtWUHcWSsC+TOREnuQI29GX1dEnbxjq3KcNT6XKlS\r\nMzaSkD8yVjamXg6uFOT11VjS601eB8c9SfY=\r\n=SXon\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.31_1678923144329_0.020006129783646465"},"_hasShrinkwrap":false},"0.3.2-nightly.32":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.32","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.3","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.55.0","@typescript-eslint/parser":"^5.55.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.3","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.57.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.2","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.0","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.32](https://img.shields.io/badge/version-v0.3.2--nightly.32-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"473bb98120250b7097a8ff4e8ebeced0d52b4801","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.32","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-MaxkwH/6KKN6cMOIeLymWFs+djXGAoPVhx44itH+O2Bvl0ikHHXWSAb6GHelxUWKMp8Rl41/hpzZuNiGGDIx3Q==","shasum":"7b5908498e2344ef1b7176253315d5a5f82a9adb","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.32.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDBknAwfCFoE8qHVNnMTguojp5wCg30WdnCxyFwjKanwAiA3CqnRXFsTCUFGRONnbfMrNSS1KnZllrXSuQ4MJc8gOA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkE6cSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmojhRAApA1JswYTDm8RXv20CGe9Vukve/d6wmRLiX3EB1bv9ifbY1bf\r\neoRf/bpWqFdGrgmyVbXsU1UcKrzBUOdDTUEX22DpbOSsR2PNM8V+BNc7FTtu\r\nGC/ert+JCCIj3sa+y68AP7rlDSSAadmE1EUcPIBRLxOhm5mJrv+qa64CExnZ\r\nGIzcdT1KUeDn6h2ABDeZnxYBncDaD0tfAAPJUh/MpuB51dGVsdoFOQuVV49z\r\nUpM4DclS98x5MujFZg1t1gjBM3mn91aCbrsZUuM5cKpHm5f6tzeF9b80cGUk\r\n+o5wvhAwY2nZWU9uNYmiPINvQWbQwxW1bBJdbOLZL6z/CA2Uzq7WYpOVmp6n\r\nSqP8N+pmto7l02IctyL8UQ+U8pdDME0nuQELhcmN5rEYIYCWartnnjbA27G3\r\nNu6w3P8dep0G8nKL43zZxMveTFOsA0xWmSKJYX/gTYK4kl4UJwcW4opOyyEW\r\nNqxhkpFEN2nPTFi5r9PR9ucV7V/K7VA+H0WI+oDFS0LtAP8VrhAtdVEz1K9g\r\nVzaQ1vmYX71+7ESCgWb19ph+bMek0CQ+pUuQZAQsSJ6rqxGSDwiPD3sjpoQD\r\ng+r+5vRyTAKjM/YKseoAm+iwssD3Ac2dyVVb/0yGLjo1xxdpTvUeADwATj18\r\nTfnzMPHeQs9JJiaSQggm+dPUX+pJfpc7uSk=\r\n=+wa9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.32_1679009553799_0.5600465720304992"},"_hasShrinkwrap":false},"0.3.2-nightly.33":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.33","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.3","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.55.0","@typescript-eslint/parser":"^5.55.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.0.3","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.57.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.2","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.0","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.33](https://img.shields.io/badge/version-v0.3.2--nightly.33-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"025501a904d809282b071fb055623963da4a7d9e","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.33","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-+FY/+odwu9Re72gZyYKq7uvFTFoseEG8Ss9unYpSLknm9auxD8gxcMOGY0hr/Pn+PhPswpfasnPiHP1O2CMRCg==","shasum":"a07497136b7898092333bc8dbd2f0483f9b856bc","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.33.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAYCSn+jn4Sh/OlyPFWbz3hcKwEL356UiEM+3gldcVycAiA+NhGaRWucyiwUrL2PfvHqbsmvVVkby2s31PCxnR3HmA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFPibACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqJGRAAgZLVKs4cAogNKXbskKI60NllvP1ms639kv+tpj2mkpgc4nan\r\nE6YC/wL105M5nTKx97dRn56X2AJDJhjzp0o2RYuz6p6kjPQMajfsd6m2ww4U\r\ns92Ge027hEhk5+3Lkqim2MtGmZVmQ8WxCA4RV6VPeD8BdtXlBXeOx9mU+U82\r\nNjsvZRySuKhzJ/uDSGCkDeCj2ovjpphwT6+FmTu7Axwzfaxod++w0FEWRqH6\r\nphmpnHkTmA2sGegpWK0O7eRn9PagTRZ0Q/0RjIfChKgYmwYyA4ozrweAYZdv\r\nhZLFFT5WMjdjozp1UZLFM5aVdLnFmCZK3LrVC1TxIGOjhx4+r6WN/sNWjuNn\r\njNPbMxBuCpCIjFykWCWudt12dWtJm2Z09tzTAoemkdULSwtTilv9w6hIpnUE\r\n5YWUnlg9SpFPclDjQDNmOQfHKt7l1yhrxgD0b/cpXQ1sIeWiwE65qJWMlxfC\r\nzm8eFPArzwsC2Y9/cKwlqSb/eop9KBxExDoQhEYYB1Kug2oI1mrBMiYxK6/B\r\nF8X3WN6CVgg/Fc0JB0OwFfpJpuVJStqn0akHev0Z4xh3cabriinNTByKcyJG\r\nn4vNHD2qDQ3Mkvche+N0nHAi01nJ5tYGEJvE7zIgkfqWMgyGOHKAHkaz1lsX\r\nWRDtKecSLlQLY7AvZmeEaOZfoQYatVZ2roY=\r\n=o+P0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.33_1679095963735_0.4852747309404013"},"_hasShrinkwrap":false},"0.3.2-nightly.34":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.34","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.3","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.55.0","@typescript-eslint/parser":"^5.55.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.57.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.2","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.0","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.34](https://img.shields.io/badge/version-v0.3.2--nightly.34-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"4beddea867719489405d2cfe86135672bd5f8ead","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.34","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-VRhq3ot7wdw0nHm7ivBr804hEeNJpOH1q67Bq/OE4ccLfVYtusL15ad8EQv3t1yCoQ3zajk7iawc9r+vN02VHg==","shasum":"d2a8af35035fbd285c4365252f8efc516027ee8e","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.34.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDsyQAZrf62bP/K3wX+sZW5A1Tfne2KCvVz5s7YyFWGQwIhALpiVLlzYtIncpd25tkkwN2e1a993oBvQws/Rr6LfDHV"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFkoSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrAhg//fiNfCQi13KN0yWD+dKT1JQI9yqhu3NCH3Wq47FS33sVQE2ss\r\nLGjZlm8FDKd2yeRFc+qKRg1KEkCKl/gx8M32vau7Z0eZkTjmmxFlvjV1eN9r\r\nzrceuJNQfgc85ueki3eiBpDV0IL43UddyTWN7EZ7sawLe/Ws2RfJqfbwZWuG\r\neerdggIAAXGVeQytlbvGyvXmHRxDj2sTpvjG1K9haC3HXcxGZ0DQ6ROsHX79\r\nn5XofihnelE8/xSxH1y0rW3dCIlSnYBGfGf7qVUX4AER/b9e1LZBGToZmCnO\r\nR/KrCT/MqopBi35KmSzye+8xfKNxQhNnUyPXIk6MCKmsb5d44zLuh1tiCTsW\r\nUuiH/dY6qZvj574TVofwqEdl07SQN2NZbj6YKdIS+WEygY+BGZ/ecEoFsNKh\r\nU7hkqHoldjofsWhNz41G57K1nmnQzhc0G3XKOHHtiUUAQX7a4sZOWDuNh9Ud\r\nVu/lPK5QiAJFecjvG6gPzr7njLbsORw65xYzxLn3G0F7U6LTrPvWNM2DYIPJ\r\n3ei2oBaiSu7B6K/ISxk26VHMu+unADHPghmKbEkK+RHZWMsJuIF3+k/rx+t+\r\n1hyNPF5JxRaP2ZA+rNz2wgpqwE8iE8dfdzjw9OtotcndA56EIj+IVGEYXpIf\r\nXzGezzGNFodD69/A0GS/LLa/WJQEpVVVow0=\r\n=nVRT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.34_1679182354673_0.03567469901669318"},"_hasShrinkwrap":false},"0.3.2-nightly.35":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.35","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.3","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.55.0","@typescript-eslint/parser":"^5.55.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.4","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.57.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.2","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.0","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.35](https://img.shields.io/badge/version-v0.3.2--nightly.35-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"2c46664d5f147ec5341d2bf270f26b17412fe5f8","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.35","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-sAnXkz1g/QFbWo6s3zXyj5qgFgkaatPIMBBm0Rf8MwXyQzV3yifJnem0iq7sZ0+mwuOImYF1mXkeZkZBl/q3SA==","shasum":"53b7a287e78879784c55f3ac268246eae1ce1f72","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.35.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCzSIEjKWZlDRAV0+tCLbdIKZhdVsHYGUeK9NwT25Hz1gIhALxXQHy91mOSCMoZm1NyT3d5JACQNVtcCRX7l01oQ9CW"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkF5ucACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoAow//cQP2KgoLvNCcSkA06dvc4OVfzt54JQhyHSDU6wgT/Vyfyw9y\r\nXRowb14okiGTIYXDqPRItSlFvZU4AiGBfXqHZSt5Wadz5G5bTkd0r5YUIGn4\r\nOMLcqQYNxBHhL6d1xCnKcQ6Y5uZ40620tiRoGlDIP4rmI0JuOH7yG0cxXsDv\r\nwojCaw1yawqqJLSQ6S8u8gWqDozWIxygOzJd8ndpn+403Qcg0A50c9UVfrLa\r\n6AKO4ph2M79BhhXMmvIuygF9uPxOkrY6eZcFg51hGDp4KR4QurXj+LckLUAz\r\nQ0LpV4eiGktFgcQM7E4bfVPX5sgHsKzHbCbEu1mSmkfb1ZJy5Aj3e1ROmzge\r\ncOIP8mMSKvmAiZXr8r6Dk9t1PpphNauJgBFC567tBN9kg513vHA6wb3Rtz5F\r\nhmLP+q/NMK48xpgVgOoM69cLJSj39hk1cl+B8v2zE9xb6f98Mfbk4Ka2+sIk\r\nYEyxdnkDHsq8eW12RWLcjSbc1s3eNKBekOeqTVSII8uu5MFhM9hHBm4f4obC\r\nonVDb/5/ZA241VTYzn49+v9eKss+SkBK7C4mUAPOoT36iPiGIxfw21urEo++\r\n4nZnQVnzLSg3et11mWu76zeHk+jQh5dEPuAzwvMFYu+84mxTAb0IzPEUcQON\r\n4la4JkdXXDDThyaxqTjP54mPCvKlytGd+zw=\r\n=EjgM\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.35_1679268764457_0.2843290115443289"},"_hasShrinkwrap":false},"0.3.2-nightly.36":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.36","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.5","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.22","@typescript-eslint/eslint-plugin":"^5.56.0","@typescript-eslint/parser":"^5.56.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.5","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.57.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.2","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.36](https://img.shields.io/badge/version-v0.3.2--nightly.36-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"aa14d6f577345574b7a78a4f1fd4d113dc22c5d1","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.36","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-30SmCxgUQnDRRJ1EncQs1LOKb1ylEyMOQsOMuOWWBE8MRgDTx2Ls5rhX3jEOPeNjnE3cjRBE5DtMIVzS44sv3A==","shasum":"3f1e35213b377e9d86ddb64ae0061705302c5093","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.36.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDimwHOsZwnTUS3eyU+fiojCvCh3ATXyV5SztcKSO66NAiB1K0lqiCuwkvVNvP+00HDYC2Lcz+RfFHFi04OPz7exbA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGO0bACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpKFA//XfvC9QsdESqRdStcP3gYsRJmw6DEF7/VbyqA1mSQ6oMD9uCS\r\n/Ub+6zqN4CXtICbJmEe7E5GUfKjrmRl/amNaEEHRPa+QUQ74mqxsG3j5tzCO\r\nWZIMBf8FoJ/2YNajvsQomI6brjPL9caCITc15Rt237eO2SlopzWqvYqL0gF+\r\nFPD8KcupR+XhueWpFZJRykd/FDdLqmvRKB4sVASs106pfOeLyclOGZKN5vwZ\r\nbS3wZT/CMSXRx+s43w4oKIaKJP8U2jNvjv9eNclGsHe1e2xVimynKFpWrSah\r\nuYg2rWgUDO5ME9XsO5zAJfrucesOvym1mMwU1f+8hZ94GcINf7bt6hKF/x1f\r\nWzDpNIBFHFLxe11V2zOFybkC5cYwchk8rEwAhoHiheBlIVrH9a+ixMRYmQvi\r\nHRgjMt/TZH7MlizEMdJ69ZOLFwsNzrNGEQe0Y4+JkB5gTnuKtAr0Sxgr3fOI\r\nbDa7PNzZUnI02khD/p5cuyqktYD4FaHqBK2Vpaej8VbNkWY2DKp/5iptoryA\r\nljF4xOjv6tEkPhjQC46BATcRb7I4L8Ioe3G5d3Y4txE7QsghyZuLdlQMEzQ4\r\n9nSZGjzXUFArYWAdrbgL0XfLfQ6Yw8xO0Z1GAW9uOQuGlK1ClV479UXlvd0k\r\n3P5YVqXA/yDoQi7fFmRSI8gehXO5jR+62fY=\r\n=bJNi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.36_1679355163713_0.8301512717095658"},"_hasShrinkwrap":false},"0.3.2-nightly.37":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.37","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.5","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.23","@typescript-eslint/eslint-plugin":"^5.56.0","@typescript-eslint/parser":"^5.56.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.6","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.57.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.2","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.37](https://img.shields.io/badge/version-v0.3.2--nightly.37-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"548f77cece71b7dfec8707a6736693db0c736b3b","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.37","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-6a7UgBca27LXvZjuzmryfQl/53f7e/cRem8MK6oAFfZhPFXGQdaWdHD0OaRonmzYTYQCTDwednpT9Pki7PrKkQ==","shasum":"ddaa6ca78a6ae49cb457929fa36c39528e92cd7e","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.37.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBtUXkfi+Z2F7Z/70XYrAFBccZpFcVVH7FbzuB+8sRW3AiAQZsSjkKx6ar8A/y390xYo8yU6gTZWoQWcEPtHngbL5A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGj6KACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp+VQ/9FR6/3HQGNtP7qNYrynhjWPjxczw3cQunKJc3hoD52ssbWZq4\r\nCZRyCWFZ1dWsR4ZHsdoBAHjm4/359p2JEsxd1mSICFGvHpAcByQK5G5d14j/\r\noZtBL3IyHajUw6CfVBn+WKUP2ZLIDmF4MV11yQrxHiWa2UmvRYUbPBlXX6va\r\nhr9HviHyXu1xQX7qQcgFWNVnv+FdDcxtBmb31O9aP4yCgj4NyPkqwS6kZO1B\r\n1WtMJ+zwld2zka3D27myf06yIwMnWScwgrhrgJ5KY0yn9ZQvcfQDP4ObT/Mi\r\nMymnNAXX90EzP+vPzdi9jTF62C9SoAVUmE2fxMIJ9uDNApvGyiWNpY1tE1me\r\nhpry8h1pNwf9naXbym019J+QGPHoR8MYqQIPB3BzJEMQd/so59NNY+hLjPxV\r\nq091JV4MbyymblUviUYfQnv5+WPsytzCz36DCmHeCg9zf0FrKwArPOLWweJC\r\nVNFotSvyrjoRZnyFLHSQ1V8/E7lC+HEwfUD6+ZGUcEpmBSEdm5x1DinaSbGN\r\nn8TxJZR4v30d4eami1g+Td2xsv/SYihBi2+AGI38ZBIb684ooQJXh8kpb9P5\r\n2fbkZJPIJJiLZKJWPuJ4x5DNG5SLYFjjRNPprmYgTuZQkGFW3Sex8WovPdY3\r\ng44TM3SjavlrnRmYIhaUjVrbe518vfQSJro=\r\n=1uAD\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.37_1679441545792_0.31626542356857557"},"_hasShrinkwrap":false},"0.3.2-nightly.38":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.38","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.5","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.23","@typescript-eslint/eslint-plugin":"^5.56.0","@typescript-eslint/parser":"^5.56.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.6","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.57.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.2","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.38](https://img.shields.io/badge/version-v0.3.2--nightly.38-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"928dcc4c4727504290a16b002b73cac9774b0717","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.38","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-pMuWRfCmBf1TpIG7jxYrML2X96WxvPn2dhdWTAI/EgSb3b4qTlCv2IwsPI1I35si3rgDFgzV4GQtDoRAP6T7jA==","shasum":"3be2f74f51f6b7da4af0198e66bf4d53941309db","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.38.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF19HLKC4Gzh2F5Sk+IuNmFHYlW/rrJCuhnjx7aR95BiAiAkSJmz9AN0B15UNDLpCRJOjpuqmDpUEd1/owT5Tvdoow=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkG5ARACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq/2Q/7BcZt19EFho7LeDIM2hYb9Lf7/74GbTA5X9rk59jrqcxKMeoX\r\nRcHmQG1o0uKy7tvJGPmTM/jTdvkmPcrjqLeVNmzePbXCbFb//+uEXI5Y90VF\r\nr6dioz4ihdEhXSc6uu5ZOfjkymCJoyF8xIEAQhq5MH3nwf8My3/Ghuna92hH\r\n3l4aCJ2uOQXJbREXGQprh+xBScxLd7OCdXpbnBMEfrevES7w9oxy2YUFeXfJ\r\nHyY6n+BOTsirmswRJRZ8ujyGF6Gn6vguRe5awfs66Ab2PgeNBcEtO7OWjGtI\r\n64vaXemR0uCuFLT0B7voH+5Y36HKizkEnG9L03nRCjgNBnslB7pqb+V4FNfp\r\nETW8+mTNlLaw8XG9vy36YE8b31I61BH2XZ0BKwpURKecccCxHa9hRXHbirC5\r\nfTRUG0gnhbey/XthK0EJvG9blHANPwMCb8pxwASzv+B6WAv8YWNUWqWkOOXt\r\nAIflh/qMp591/dWF1cDc5C8hjb/z1fLxFsR3TuEgR6Ws4gJWLpaSZ1yhrDTs\r\n1GGwUVfmWsgRmQw7M+rbszPtGvKYz3NWLWDNn/YQpnab0ZSLb20J+MskUZ7/\r\nwvyq7EO8GFcA0Q1mZGWkpK5vCvvAiUKAD/ZPPdPCdHHCj5L9zTUk9AzIh9n3\r\nvViIEFg0oC2a956hskpmjFzCkrALB4uq2+k=\r\n=7GzP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.38_1679527952941_0.648778716071206"},"_hasShrinkwrap":false},"0.3.2-nightly.39":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.39","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.6","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.23","@typescript-eslint/eslint-plugin":"^5.56.0","@typescript-eslint/parser":"^5.56.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.6","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.57.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.2","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.39](https://img.shields.io/badge/version-v0.3.2--nightly.39-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"9ba2632bc5673ed818760b8e577cb68d9a2ce894","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.39","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-vHZXagSJlBLEUwUE6OP/4frBqHOTUBspoHFpeBpC2h3Pe3SX3Q95Q9QSH9UXm3/RGvmwko0a/KJ10tY6dXL9AQ==","shasum":"5a9c618c965d43a93eb5d051efb93afb287e8c1b","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.39.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGJk3Yhloxa6vvA+A9/bBfB0tCJpcXgWEMi1MiNvgz6dAiA9xjg8QMUHXjWGklAjNz+SG2dy7zwe+msYOdZEYLTgVA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHOGQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpINQ//Wj/AjKPh8RvewFVO/39Rp8crsQVyPXf8Cyl9cxM9k5G1Swms\r\nCB5MNkK75a07v5Of5N9ZsnylzHSSeaqrKNcGYRieHyEIeSt++6r8sNNtILGw\r\nzKq+Qzb3OgBsRWzFzhDLF5W7+NgMqfDnBPiQnQHe7Ex6NWuESdU6peeZydbZ\r\n3uz8LN2Jkx711gHHZQ0KwmvE0ddUMc/CB5kidYS8GcN/yoLU+1JnHhFJDDDx\r\n4Lklu//2ub5RDmfdc4LyqHLh67/PkoEfKJXUmHAidzRejYJ/Olaf2H0NbzCg\r\na/Xe2ujknMatLaORejUpvYmwtXEDRxpE0w3hq6Cju1PFjs+EjxriPd1362O0\r\ny17A1vLgJcJ4JC9sY/LUoTYRCA5hNLrte6eWqoeKJLB3NTaCI4gbmUC1pH5/\r\ncwSOI/9FH2W58qFYN5gH3Jgc77QkS1dIbgO53Ar2pU38O1VJflfpgWXpC5TF\r\np0LSsjumKuCFURyrbxC2kL4/Ui/I+omnVTCdZO6la6PFODIV4lZhD28Q8OQp\r\nD2Y2xW9TRBgfoFiNMOE9Z1rr0FzpX04IhX7qqDFbrxNRo15dgx616x2/QlHX\r\njgQApWz6hzm+4yPtZGMvv/JRMvz6fl+MrkTKuZY737ajSo+YiML7NsJ+4/Yl\r\nJLm175A6vfHZoz343NgK+JiOAsPbCjQofgg=\r\n=300Q\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.39_1679614352320_0.10137897461268075"},"_hasShrinkwrap":false},"0.3.2-nightly.40":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.40","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.8","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.23","@typescript-eslint/eslint-plugin":"^5.56.0","@typescript-eslint/parser":"^5.56.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.57.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.2","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.40](https://img.shields.io/badge/version-v0.3.2--nightly.40-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"ad0f969fde76885478d80666cbb3c6ea18075442","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.40","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-d6n/DibpvkH1res6gYP+7niFSm/g4Ht6cYYTRZbgx4OBFAikvayJ1COZBybbBRSgLBZjEhH3CI4SdLHXpHbiag==","shasum":"1b6296a821dab520a58222de6a8fd2ddef525f65","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.40.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDhWA5Yo2iq9xhwhBX07t8kr7VSmvAjxWIuXNNgTIgXegIhAKQimWZC+F1fhqu1XnbxW8wX66c9+RS5o51Y2fB397jf"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHjMOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr+vQ/6Aszl8IoMT2Hnogk7N/eCMYnCxKhoO49GOQ8xzBcfCKjtxciq\r\nBU5A51NjGjM+5z+89Pt6ceQSGzKtAmpW3KhhoEYVqOViuwtZzBJ7CqS8LIGU\r\n++Syq0rTq2wb216eqs6A+uKSvaI2evpbGYQLD12EPk3VbvC4SlifXGiX6qZs\r\nrKRRXBW8g59PQqeYuIEWZmub/HY/xlGhUOA/BjeOn33NadtSmozLZiF1EuUg\r\nQqCjfiz+r9rV8yf4LXRy1noNJWtEO5G8Sz3bvdx6+xF7ds1jVBdkhQgC/Odl\r\nVr4+lMmsDr9rhKGnidW+2LIHmfIpirujItkXnPR9ALIcJlJEu41eWVFoTyOu\r\nkv/dE4qO29E+hqUJ7SWNHHADsKHzb9KD692/sONRCOvBHxyEMc5toalmzeDl\r\nAahgO/QGDTM2F9YwW3LdifC4oMwNeA/w3Vfr64GTS+VMBLcqYzvY0ATFd9v3\r\ndjnfeshA62XXWJwxQWmtxOwNsszVUAqo2iVjQOCaUURSqImQADCTEEBVxQEV\r\nvNq7Eaz+QgTHTSeyK2B8XpzKabPfqLR41mbDmsShJ4mMt0lC32ekVxKgml/o\r\nLdGEZPpn1rC6wCDReoPFkYDUSmZaoqfpC3AIOCi6QR3ZY47hvF9Rohtg4WVc\r\nzbJ3dmJFavstL3RJyxhFHSyQ3uvtjzX8aAs=\r\n=4HjB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.40_1679700750716_0.4297256292587335"},"_hasShrinkwrap":false},"0.3.2-nightly.41":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.41","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.10","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.23","@typescript-eslint/eslint-plugin":"^5.56.0","@typescript-eslint/parser":"^5.56.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.57.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.2","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.41](https://img.shields.io/badge/version-v0.3.2--nightly.41-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"6fabf7105f0921dffda2c79ae418d13ebb086550","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.41","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-QJjtBZFKIOnS+CWZW3j3RwdnGnGaJ9qKlKoPnza63nnK8Wp5pIz5QJJgSSeQmwfcRQaI3glzzhEBWSh/NF/wJw==","shasum":"ca59cf3665c3971009db865da904aaa89d57951c","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.41.tgz","fileCount":8,"unpackedSize":35581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDeAiWNIaFwi2SWDfZ0yWCmopg7HL/TaxqCA8OyTHCU5QIhAJGYsSuSs/Ed4viqtVvEQvgynV/TyKcn75Ss+Coo9qwV"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkH4SUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoXQA//WRGkrB4xV8NvYPirGF6SxwLrkHFH4qsEkYNz0Vb8Tf057tRq\r\nl9Z9ZQc2QnhdKYI0d7YEOJrrSWYNtliqupbHdnNhDBz7s0LcVQ5WIGWAiASP\r\n0hmF4OQ6QLs+JYTsQUDPhPLTtliY29pwxd7MzKrd4a02A3LTYfP9RM2ipjaD\r\nHWgLhbpNn9gRnSX8qtDd8cmV3Qp8y6kB72e3AS8YVq6AH+NYwMddP2A8F2jL\r\nwmbNM+GxtoMfeBWFnAtL59VrEwVopf+Gk/lEzSa5+rYym6vIr7NGmPGV2gDw\r\neCqPX37R8U+xexV5+UI1wAGXydd965pH7goQFReMjug6L6YRqDd5K5GR6SsE\r\njWkoCVWU4piN8cV/yV0ptCcxe7UmoAwvSbySPMn9GX2jbwaUqayU1cHn5ulp\r\nu21aCAtFgheSEACHf2KJQcWzc+XXE4xIhlXsiY2W8LJfbthcm68JUKSx3xJs\r\nmQs+idFBPo2OjfgY1cUr0ofxrkKGbO3i6FGxNyK8o2SnMo9v5K/BIhNB4Lsu\r\n230KogvLMuCcFpUK9VTTB3/VzLLgbSzMB8GLXmHWw04nYbwgFdFi6btJL8AO\r\nJCYpAdZttXnUQdVyqRneme0CdaaS9Pp/zd0z8j+baVhORmU91BThnZJfRHWR\r\ncVB1f8Y8QdE2iMYYd4cvItDkj0fBiVIKEaQ=\r\n=HGpi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.41_1679787156439_0.897364536076688"},"_hasShrinkwrap":false},"0.3.2-nightly.42":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.42","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.10","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.23","@typescript-eslint/eslint-plugin":"^5.56.0","@typescript-eslint/parser":"^5.56.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.57.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.2","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.42](https://img.shields.io/badge/version-v0.3.2--nightly.42-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"cef2cb5d11c86794d8f0bc9db714d8b4799e208c","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.42","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-p63+XLvTSrQnGNQAhNIN+/Yr4fpvde+wpXMUQW4ZfYFS03g/6JyXq0v6A3Q51vAWBdk/G7i9idD/Ts7+IBMyAQ==","shasum":"ef64625b70d873d8724235a2885d9a8050fdda9b","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.42.tgz","fileCount":8,"unpackedSize":35581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEWgaeaCSBCCrohWSbVs8DdMDSWpMp7aKyRK02dIedFRAiA1W8vuPj8E1TftrorSwas+aGY9ok106ZS23BJLZ4+Y+w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkINYNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpUTQ//TbmXAk8ZYEgC/PYnkReaIkQDaOrYqflFgKut60M4NhmasP+U\r\nozLXGPQ6hz7Z6atnChivJP+EFKI6bUnwViIWu1YzVahYeGAEA1jbW93HINK6\r\n++h7d7kWsaU+Q3YgS7aHk2OkaV6u4jyXgSMZajeAINA62BhKITF+3iOPNWbw\r\nEZx+zD0v4xiQY62krGByESueCsUjgyJRBWl0kZc0sw8eiDIbxbv2DTbYUic1\r\n+knia3LKy0eQLSR0hgTSgt+de8L8XdceEwQnog1MDNilne7g/WLeWkimMdCG\r\nNMSEx5hNkMtCxnhWqWiQ/npYcmRWukzKLCRHxdcaZhhuXtwUn9r5XYyx0eKg\r\nLBMQsv5cBR/A/d6WEPrB8Yr7VecD2DFjXS1BTxIbAZSvsS4UubVkTZqjPYQW\r\nHOQ6jtaGPqmZSTQDAZIC3YZT+uzwW6fB70WXSR3uxtpG73LiX5SeaTqxMdfU\r\ntZyn8GFYhNVej7kM9NX6icdir3OlvIJJI8jxKHO0EZnRlv9ri0fCYdaIaaA4\r\nwlV/13UrKYB6k0JjABe+2UlNgr5DxU0kK/9oAr7Lt00RxJSGz/5nrbgkW+6H\r\n/uQGRu43lYIZPm3yNiNt9mHVySB0A/RMvErwx8wh55XP3fLwk7/h5ZkzOpgs\r\ncuwgAyvjKUdu9cRMXvXNDWcdOTpvCZbTFPw=\r\n=Ifs2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.42_1679873549589_0.02215531150936778"},"_hasShrinkwrap":false},"0.3.2-nightly.43":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.43","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.10","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.57.0","@typescript-eslint/parser":"^5.57.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.57.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.2","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.43](https://img.shields.io/badge/version-v0.3.2--nightly.43-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"d1fc54e9af175d64beb7794e75bf851bac84c0ca","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.43","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-QHwGAbu+asv2w+Htr09XdQBfAxGUaw5wdjaOfF2aoVGOwbuOmUNtJXUW+/4wsgIZ/7n2PsQ1J8hehNUIJAjOMA==","shasum":"4f04a8360532dc58f95f3bb6437ef00ffe29dcb1","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.43.tgz","fileCount":8,"unpackedSize":35581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2hdTcdY1N7ymFozE7Wc20ugWiJmZ/LCADP5zSEnZXuwIgcsDGyuVduDqbeuRMQtqFQ3f9TueQk8O764mdcstVJhs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIieSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqgeBAAnsDMj1WErTINXeRaSvkzji/dU0Zb+tXyb+jNO1LdyBJLw/8e\r\n1mzYyIL5dpIjVdHOzSSmKER29g9yVyeAeszFEc6MyGJMoAo+i8CNmXfgAMD6\r\n1PqVjrVRsVRoK7/zISxs9pvxjqDo1ZeXAhvUy2THNJL7DgeHtVCxbG2rY4uN\r\n7ZWQotBLUfxgXTYZc8evExgFMcjGlzWfvrvcwLfKcPkIMoOJSbazmyskY54H\r\ntbC2ffklRm58zUcGIBAEHN338cx+LqCaiGMO4+Ymm6HH88oXhiIZtWp5hj1m\r\npG3lkk/uuClccZsxo7ZIYXq3rvVMKEmuEGEuZDbrqIADj4liSZ+mD48ZYEOk\r\nhVB95M2aXTM+Xr/ynPb3ZowLkWmD80sVPkgtawO7Xjp0yIhzEJ3MCjQ8G7Hy\r\ntpcHvq8rEaVVpk2Xdwz7/eSIJ9Wa3zYbPs7UH8+P9RBCkPQnlUSKACxj6+AN\r\nlJuMqhZjheM0qur1Ua73gizWD1GVcYdoEjtUE+AlcPjyTiA+IVaRauZ4vR23\r\nHqTHfZvLn8ckvvmhxsOJPm4HbpdOWt9Yfq3utaXHKRrvbNsJRbb23fZjou2Q\r\naep7bE9/FhEtG+sHwGPaZpTGSB1HTMa5sABKkZ9xiiQq8Hw/NImqWMJHUZpG\r\nu+GxM9MRgW7UOtwb48RnGNX2XUPGBtU6LUM=\r\n=Tnwr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.43_1679959954748_0.9410056938369915"},"_hasShrinkwrap":false},"0.3.2-nightly.44":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.44","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.57.0","@typescript-eslint/parser":"^5.57.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.57.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.2","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.44](https://img.shields.io/badge/version-v0.3.2--nightly.44-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"41407e1e3c3e26ad5417094552de8626a891eed0","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.44","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-wkVwpuMpwmsvSOz7IJPdFjv3dO+7mznKmMmVl6poHc5c/Ppp4opD3AO3K5XHqC6DmrSh7haGE98SRrrH1+ynWg==","shasum":"d2ba3df6012bc67f57bf1eeb744a9eba5439abda","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.44.tgz","fileCount":8,"unpackedSize":35581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxxa6AiHe2GEm+QPaGVpwX8Pr6DghpH8A9N6vyhjt1HAIhAJUFhTEhLS/Q0KOAqyHIMEwszMW9FNY4Szs27hwcCovI"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkI3kaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrRTA/+M2cBwE+W/t45hZ+wAhxK5qSXaqzb8cOMeI+YAIK7nI8701bK\r\n7yl4RM3Ge+3e4fygw1BQ2+fS3KUnNf5ROf29XFUegTZ3MbyNS1R3ZXtJDiEY\r\n4YuTf5E2++qBGu8kVNcM0769klXtHPs0QutiXi/YNPbsqli+FDPEq12C+8RM\r\nl0mdt69kCc2yAIQEYNj8djyJMToXtzT8vb6vtLRFWamrVCjOwQ+5PEl5152b\r\nyzyVCdvnxpJ1feDpPiLeLJMvCGbQfkub8kjSRMKpVGNJFx8aSqIZKsevIuZd\r\n5A9rRl+SqQ/ZNSoUqezkjLHvWvWRQ8FoMCtvovpiIFh1+QQe+r24LVjQoh1L\r\n2tai5NPgdAyEeISN170vOZlmrsmZWBHeB6gY3ig1GfUTBZDyN6lZZiU1b5LA\r\nuwjCYbHVnrdUepUNR2qkSVPSGK0lyW7XLEbU4DRU513iPe6/S/FG6Mdel6io\r\nJsXtISFRZXZLTCsuJtWUp4YnFjuNuj3ESe5gKNErRB1SijrCB6BH7EXXVG9D\r\nMeShmeJjkroucNieU09+ZYNOVLyYNZEA99HUUvEheUgi9q9nmKoT0SOkrCzA\r\nqrnHZhE1tq4G7R+6AXQbb18fHt72p3bzEmCgfqdsPmXARXIapomVIRhoyU2J\r\nvrbXk4s6J9BcmJivqlgeSUDD9geR+HeF3Os=\r\n=emEv\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.44_1680046362453_0.7695846988616941"},"_hasShrinkwrap":false},"0.3.2-nightly.45":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.45","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.57.0","@typescript-eslint/parser":"^5.57.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.57.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.2","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.45](https://img.shields.io/badge/version-v0.3.2--nightly.45-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"6352dbb5ea52359c120c2b55135c1c88aa48086b","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.45","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-bk7Eh3tSzhPiONPG1XblT8yKfxJQQlx36Mwl8J9DIlL8MlItNqK5paxDgHiTyZfbk3wdHnNYjxNIwbjOqp257w==","shasum":"c9f2db4cae56a004ba5885f39b4eb4d51f363cfd","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.45.tgz","fileCount":8,"unpackedSize":35581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEkLQ7gLWPJ9QAQFDusI4wC6tnaQnuWajO/T1y9X1T5iAiBee70EyS7otrjwSSa207kHpWK0dEsBDgXLbPY0dF7sCw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJMqVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqubxAAlLbsQAq2lCGnUO140anKtZ+wUsJEoU++Y/8EawtFg83iQ2YL\r\ngmS5V5rXBitJLbzIVsgsgRRIOSU0V3XU9UZeSlQm+tSi+VyutCPWuDUavYsH\r\nL5FMRQKuYdDDcWYExQj77HZN8tT8yS/z3dOjcUS+Mc3xBHh4LAdq19h8yUMX\r\n3nJNRqBk8ksUp7U3XHxEabCrtN39WqEFkiSBD4HXm4ZnR0TgRq+XebmxgI4y\r\nZierIj2VXCifKbETkMQHZgRtkqoOB36Pfzv4cDeboeaHmkCfLOfryMGM+9Ca\r\nFZ01Jk1mDi54bC87gLdhtQ0FyEiTx30KYQEcRn864R6CmPzUNGCBcRkvFgdr\r\nK+RHs0wh3f2kO7YPu+Hcahs2EvT3UVhogO7r0WFuDO0W0XX6aoAcEOILhNsE\r\nV08xHIPvdqJGSoCvf9qATsx8A8kLa3A+jnc2/RzKMaS+3KVYNNKo6fDxCoDq\r\nv3EnLXaowE9z5mlALdQ/v+mdE4J0WZM/fT7KFuejHdCeHddUlY5AH8DV2Ef6\r\nmFboQnc3eRHBgqYEoADAqivm7ZYQ/M4GI3sIErC1WNncOqZlBkYMXe6ctSN8\r\nclRDWQN7GUrh0v21lMqTuxjJiM/fKM0h2ou5h7qeezkD5fGW51SqgRnVZRWs\r\nDjqNitCTNDWT2BjR85jnklixVuXqvTqdZkM=\r\n=875P\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.45_1680132757788_0.8321893360504138"},"_hasShrinkwrap":false},"0.3.2-nightly.46":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.46","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.57.0","@typescript-eslint/parser":"^5.57.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.46](https://img.shields.io/badge/version-v0.3.2--nightly.46-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"c6ef36c1e2418b49628dabce19f9c5534935ed5e","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.46","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-5ipAwwKsys8QFGXcqKpQhqQ0ouyYkS2NsBi6+N8EbQaxtSVwEGd6sXdQSIp8mzoJpWF1o62/qejM+EwOQSuUtQ==","shasum":"71e15af65bc7f6191e7db10cc43a43f1e7b8f5dd","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.46.tgz","fileCount":8,"unpackedSize":35581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFvQ8913UuzS+tcVEIw7yg/z7s5mAHnDSlFn/nFJm8uRAiAv2mGw6QzslE/H5IfZJbsNym/621zwdv+2RioK8EbCJQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJhwdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpXOg/9FGAsORuZDrQZEgspsj6byIuHD5BIQE9XXMLwDMnLvbCPFoxB\r\npml6M603rJHYoZVJpeON2k3MgVUEYqeZqwTJxOOdy5m7a2nQhGzElGnQfTCf\r\njZ7f0eUhFwXJX8vfamgoheUSLiMHaBAl2dNu11Fz5zoi9BlF21DWr+KChpBt\r\nRjSNXPbuJjyQxEYpHp79RTeh+QnCBkh2CTkBzJc3Bdt0r6lMqmLa+/HQilQ4\r\nYjdGLERP24o4UQGOaXZ7C1ipmGwbmjLXHV/ZUmf5uAyIs/7L68Cfqacv+M01\r\n3a2cRZ4Aqwg23oOk0Idj9zHD8N4lxM/QN2KLCK1538byDoBSP9XkauV5RNiT\r\nYh5gMpMmNXqQbJhYb8Jf1i1g0HwMOmQ5Rsq7xSWYVXstovwULM86RHafl4Te\r\nmMJHixgpBlKO+G4a8FvcnelNdUlCRKr/4VtuYD63en+vJtto3A9iViIU653W\r\nG6wtLO8adS3oB0fF5OhLAdESnRR2N51L4SYn8sSyHK8BItPVji9vkVj5MzhE\r\nEFyokSjcXu0pbsKCDyzEmBSS3wFc6wWg6lDxIrAOLXeD4rvOx1W8WbqFtHZt\r\nsaVFNMl4yT1E2+ZS3Z2XAtzjJV9fX03SlWOqScTE/4Gve1a1AWSygK5euONq\r\nx4A5dp9lj753I3K8usj/HrPP0oYMsJcW/bc=\r\n=Ig6G\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.46_1680219165464_0.8485869376347526"},"_hasShrinkwrap":false},"0.3.2-nightly.47":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.47","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.57.0","@typescript-eslint/parser":"^5.57.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.47](https://img.shields.io/badge/version-v0.3.2--nightly.47-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"4914213ef9f8c50513f787f0b0b01fbcc9f2b012","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.47","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-L2HJoEw2tiqMW2n4LRkjuQxwZdVjE1d/Ih3F6BsZIQxkN3ciK06DOXA1sL2BGFTBBcBRzYyVs5G0lOC0w/FpHQ==","shasum":"f1f5d1fc02b83e8d6add9c5857bd4d2513d247b5","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.47.tgz","fileCount":8,"unpackedSize":35581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZjzyat2k9HyntjrXXjz20SjGcdAQIGfKAgGXqBwbTGQIgJ5+3Fy8aBam2c2tfRHj34jQTA/S+I3JwZrLKObiPcFg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJ22dACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqQ5Q/7BE0oPaF9m8KI2YNuSj0SOPyVDtrQAGmjGMyAkw4DVrv/wQpO\r\npaYLl9ZENq7gEKBkPGrl6eo53MRwL0FmYSWbEaGW/4Nnbq+o95K/2JseVG76\r\nxDgNLjluNsJqDZJE5J9sDucLnGDoyRvfCG8CannW/0QmuxZylv38sMVEY+9q\r\nt9dZdRwVYRyPLPPKGmf+vEHox+P/E6vQCdGU1Oj2vgSin53KsS/KTFPgFxkX\r\n8hkej4YhPX/0aW32UZuxv1flrsnNFUCHktuInJbD2020rVToFTeML7WDgzBG\r\nDHahnZgpMfw26vIpgpzt7+wlBpuDZzqyMZ6V7MHH0n7Rq0lQvbnOT2LNCJs8\r\nn8W/XZor7rPGSBPzTCa4D9PZSNGqnfSkTbHKvejDk4NaHYUVqEwAW/rL2ZoP\r\nINfgtpqPTXDWs09TZX64Su6bWwNKQ2rw2+ofuCuEIccY2jgd46PWTSE0iD07\r\nlf6RmIFGui+YWT/xsU/wU18Nc0qfz0YH0bJQyTOEBbP50II7Uq6L2eC1hHDA\r\nwhECHVZv41kRVCzQQrEseIXibFNzq2Lki8NOSkP2GN/Q5++sdNjnGeLBRXKV\r\nRLSNaGZGT58Pj+b0yxa0z0ZLrVMG3PQZDovGU+56GVhwPfGbYz76vt2chT8A\r\nvQgU1cXxZJSYf/SUkbH4iEaX3Qad8P7+zJM=\r\n=qCeJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.47_1680305565145_0.6479032672368112"},"_hasShrinkwrap":false},"0.3.2-nightly.48":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.48","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.57.0","@typescript-eslint/parser":"^5.57.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.48](https://img.shields.io/badge/version-v0.3.2--nightly.48-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"c0a7c46060f9b3c3706eadf45af0bd21b313cf65","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.48","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-M3qoCZpNv8O4Y2u03QKZOjKzeUw2so+myUpgS+b2xc5a3/fx7Jvo7NXFP/FTLHKjVAY6PXzMmjf0vUAy0f8D7w==","shasum":"51d5ab6667ba3096e20ca2224b133ad17a686674","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.48.tgz","fileCount":8,"unpackedSize":35581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCocsX27W5y5iuKwFnfnpPuoFDR4MJFCcONfF/G5a1fcgIhAPCT2LXzEC+ooCpXaJxR6EsZPhsxJfsBGAgqH05W9FMZ"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkKL8cACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmovYw//R/6aVh+yvjuFpYz5WfwbF9ZUy//vp6K2YeaDFDEqXXNc/nBV\r\n2vDyiuS5biz07EGwdQUjvK+n3khQ6UK5BFHgVwSdLBTnBS0fMa0gyaEmHZeb\r\n8Spafx3VgpndNw2t9n2Tjytwo1KSfCeihDGVg7yIZqxYPuZk6yfq973FflVE\r\nWv2eNRjgmWmMiUozyQSXwRRK9AGXlm14o1IRYHdZl1CyBjKjrMCGxJ9tJ+Jn\r\nEYsboglBG0dGkTD6SuVb7M/dAOz7g2to292hM56kB/Im42SKB04ciEKH76Hd\r\nOuXWvNgE8cdqSwfCxgsACumV8tSP7HdNVrxl1kHmniAc9BiFfMWgOsjYWSKb\r\nPmDGwGM0r5URQZbOPzcLAFmch7LKnJFwZCFmUlWmlpZ07ARq4EqhT0KuRwJk\r\na6z1GCmadV3ziUv2eWZygK3Q73f4X29selojBgbsCD2GLZFMsGjKR/TpsQdG\r\nmY/LczBVhdWWWlH6y5VpegPz7zbf/T5nXV1nQGuYcb/JtQvlQ96EKLICq0q6\r\nYToDP1yWLx4AUxQUbPFAJnW1HNunyjnv2V0BDLo1LLPrkAF2HDcF10jipHm+\r\nIEpN+7qIErJkW4J/t9FWmaioc2q85EZnPyaJXYsXOjMZCSQWclV4RViKQa7D\r\np2db41cWk6v1Db7LKahXWF7tt49ursDrWuo=\r\n=rQiu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.48_1680391964473_0.287266180930835"},"_hasShrinkwrap":false},"0.3.2-nightly.49":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.49","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.57.0","@typescript-eslint/parser":"^5.57.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.49](https://img.shields.io/badge/version-v0.3.2--nightly.49-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"0e06901b8c61700739185ee0c369c43fa31c1def","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.49","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-4gvxjRXG6UJ35xisqY+/4UdKicHrQbvAMqbwO8rgFn8g5PaO0nrV2ZnVbPy+MmNyf+rKlj5HYXqbUX6P3svZ+Q==","shasum":"d54b8b841cea3680e3578c9f69c57b80fa4fe7ea","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.49.tgz","fileCount":8,"unpackedSize":35581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCPCsMVAcbOdfGB+uHZyGP5btIHTV1qM7RnnyLQgJy8fAIgAmvlwZwtKdVc8XnbkBBijgQcnGMl1YwC1+l47HA64OI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkKhCjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrFcw/+I6wX6ECxf+g1tIsUmfXKYETMjo80SlewOQCBWgVVDm6oM/lR\r\n/1k6EnVuyyn/ghDj5L+D3lVDCM2Qddz7qjOYwCFVIS8ZNKMtkTUyVAUmmQbi\r\n/bauyETHnqNBgveHuOivgFY0mslp9Xx2C2d21KXz0vJ/afaxIr4n87V4K8yU\r\nHx1t/1WNlaxSPSebq/9TldeXlSWSQvDkHpQGKGz2lzu0aZXUwTiSacxU51zW\r\ncOZq11vacZULteWD6mKkLc1jdj43p4wJwY040G8OZ8zc5+XaazcJxKDes1N7\r\ny1QxttEBFPjqxv9VP88Y92x336kbeqXk/NiHvVRbSIyTX4KrCu6BV7Gwyc+m\r\nofp8XZTV+97NbJd1wUr0iHivBXFUIr5qFzGOUMf3mXIsdlN1qQ4WMfeHR3tb\r\nOvJk9BQax3mS3Lspd9dm+/dFmru0YAkRUTihDJkLa+wleKY2WllQQlGtljCi\r\nckMog1fRlPwDTCfEJn7oabdjTAN4mvQCf/447mEnk/9kPW2SUeFs3VUjyZUh\r\nuRl03t6vTE5VtkbWSH19FvFLKn4Y/oLqFhUcvNqcZlMbF9WR2V84Kywvro3k\r\nNJsGBn5jdkMAMV9WajB6IUtglhwkQVRkL7+k4lZxPbK69nFnDjlg/xM+Ns3R\r\n5KBbxLF1qTKoqB6UIi5KMNmgTOG+ZVjy9vs=\r\n=Qv8W\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.49_1680478371673_0.8578499726953943"},"_hasShrinkwrap":false},"0.3.2-nightly.50":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.50","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.57.1","@typescript-eslint/parser":"^5.57.1","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.50](https://img.shields.io/badge/version-v0.3.2--nightly.50-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"64dd0fef682b2690a81c491535be1f64e45e4db3","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.50","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-3WWATpcfqFck4S9L4irJ/BQnaoCk4dZ4ro62eAvgbbZDbhg0+s0kqyIk9BuRXfwa27djN+QEL7/eYvStY0iEzQ==","shasum":"a9f30eef42c51312144b26ae5da810c44ab6ea2d","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.50.tgz","fileCount":8,"unpackedSize":35581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDdl/iWZ0wsjr6zBZojIEz/qy7GTid/kVnti7QCKvUqAIhAN39RCIop15n9llEy22hAwSf/5f1MXfQNpimiRjPqONI"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkK2IOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpAvg//Qeb7NJQKMWzHFZOFMRHNVfNsuzwjnFpBLcoxgfrNVLKCAMZc\r\nT07D4vC+Dp1Uf5MNhluiuEqbhZIo/r7VQt3PG0SSC6VlS+dXbRmKvdH4QRkQ\r\nbV768MSLavc8WPJmNEOUle56+W5NY/7/WZyM1qC6y9eErssH6v1VpXf2Y5JZ\r\nzTLTcXBSLSMzceb+bcOh8kyEADtl0W+o5uuz2Ruu2XoviV5NwQcjQLc6RNDq\r\nSxjXpegK8bx4+KybMWesfAsukCeWmcl9kJR0m9PIOAI3tng+nyreZF5CmZBv\r\n6nCbjFomehtlDFBmuZFAI0VxsfTN/xaYPdG/NprB6WO9tTF+7owu4JV3E88x\r\nvxjY0uEpw4OdVLw8hj7ol3eloTkGq2boBSVpdhefNpGMKsuavQQZCA+Dwgv0\r\nIPPipge1Hry+zOlWfzJ1maRqTeFzMCQyGrCYBryVHMXNOhrmyOiJ0KtBTqcg\r\nDrZN8jnChVqazlA68LHRGr/iJoZOzF2tknSb4G4HyMUpMS67jrMXK9eRvKd1\r\nupEcb0hPe4PxKzz6KeGLtdNQZssujg58HyQGYZJAVpTxSmc8T6BqCbODn/BU\r\nV4yUHAysrN2TKinokLGHfE8vCjE9NvEpLQJXlqYMRxA11r5onpfBqVERNicM\r\nr/PRaVQjExbkl0uKzZbfhCrv0YZ3qRcnI+8=\r\n=mm6P\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.50_1680564749689_0.2970043527498074"},"_hasShrinkwrap":false},"0.3.2-nightly.51":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.51","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.57.1","@typescript-eslint/parser":"^5.57.1","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.51](https://img.shields.io/badge/version-v0.3.2--nightly.51-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"2a82c7e95740e818753dc5a62ae87025db4580aa","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.51","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-Vl7RvAwT8KQNVpUZb0qxs2+3Z7nmul9uWK5Hodmk67Kk3OzbpJ/dHXdwpUfnlJfwEK2w4gdGrEmXn7GsIzdSvQ==","shasum":"f67658652c6a7cc9240669c930c857c10811b928","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.51.tgz","fileCount":8,"unpackedSize":35581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD639zCzJc6UL+9PYOxsOo66e+QR2G3aZGcaywN3QWPLgIgCZ8V68rCPjSOU+c3RwkhYRj7sv4gsS8AsBDLnWy78h4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkLLOPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrhVQ//TPKW2vBcFhgBunknN4w5hAjvP8vPsTG11LORnuGESL6HVp62\r\nRCkhtORENQFt3GJNlwtDX8qFAuNYU6vSVmsEoZy3QkhCM5pmNRnue+JV0x6k\r\n0mxx9PNPBVUbWbIWcG6nmMr/UTSDI3tp/ja0K5haOdEO9wogZ51sskrWLqSS\r\ntLJRd0GNG4x46eSXlv1P2af2c/Ndy5GtSiHMJ5pgZwdXmtVZWIYxRZ1wJNAf\r\nrbrOjPFrzG154IKyJUl6g2bqRc0HoDxQ3M4YgJlLVwk1rDQ7Ysp6BfF+XePZ\r\noSdHsRg29zN2T9abHtcKfDnifJznGRiFMGRhGGerfWdLZCEYXWQGA4hVOcEY\r\nDBuHswhkSfvUwrXBiMoIiE1a9nYoRXfq+9uFnkqLXL9IgkHVx4HnMXFCcZQB\r\nUj23jYr8wL2DD8kdfLIsDn+amJReK7130ox0RYWMInH4ISdyDK7phOMBl4JV\r\nYzyNUWGW5QnS/x/E2XBhmXvfhMKa2sp02WTXBRezgRqRFGeAPQkCSqvBRTGZ\r\ndcwLeT2xGR6GOyIWVk/p1CiUdwNxZgOvilfulSCp392nQ8VXj3Zjjc7dse9s\r\nVrYfKKC9kSUBtRrjtZ9vq/h4pxtWXJrtXpR55+YKevt/cfuAbGxC9jb5iDF0\r\nOgqMcI0+MZq+O85rQPrM0nSAPHP3lESHl5w=\r\n=NwNe\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.51_1680651151669_0.4064661095433313"},"_hasShrinkwrap":false},"0.3.2-nightly.52":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.52","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.57.1","@typescript-eslint/parser":"^5.57.1","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.52](https://img.shields.io/badge/version-v0.3.2--nightly.52-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"3c750fcfbbe2685a934f280d79006f0c12ed6a09","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.52","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-xNzRxByLN5cpc8krCq7v2Ehn4PPVAkZw3pnQPVoSDJ2mobcueSPSWA0PNrzFu2MRpbRT0ioJBV2LVNIJs/faVw==","shasum":"781b6485a0ec3dad2bee434d46bfc3e6e1c570d3","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.52.tgz","fileCount":8,"unpackedSize":35581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDj2piFctMeONb7WevNzhB4PGpAYqFNX7uBDWdhpR0FGgIgMPgCidxkH4djKfBjXUK6Hxr2m426A9RdOL6T75oovc4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkLgUKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpQFg//QibftgLo3qv4m1xKVVs/T5t+yWArnAbH+RkKD0N2VKd3G+ex\r\nkLpbo/+q5ZGRqLg/8eBv2fd8RGW2HfEpNH80R8HPYZykQ8FLLqE37Tf+gitu\r\nUuDje5BA1LCFbzB51kVOaeNN7oulza0fb2yRGEe3/whng0hDDI+Ajg4TreCX\r\nYAf44lCjZ4xhz2Ku6cXVBfb/TRCmBAkiaaqEb21FMBGYLVeKg7Kf9JA1y1Mg\r\n1OQ2UbgKzW6xrs6VzjJf4Dls32yu7XhC2p9Ftf3hQQWiwieso5iNYKxde/+R\r\naH+kOz0YKMM3wzSfKz5bKyMAfxlkCHkPmXA+kNfzq9qvgnSrMKEBvVg1QOwE\r\nm1Yh5YjKfu3viT8YFctVK9VOCT08blCHMytA5I3wZqzygC9EtbbcF0cES3lV\r\nqsWM6Vw8fhR76BzQfdJtO9FzRiy0BF/kzTGoygDEoNZd65ZawRo01wW/1w/q\r\nTR6mLmXDiDrcxfgokXzZHxMq2n7ZSvgI/yhTACzAXrUVjkoNDaiCwhFihNGl\r\n9gjb58tYZtwEZ0MlVsqLsPKnS07iYm1g5kAvrSHxEKcnq/4WE8W6Tka0EJ8w\r\nKH83uLIKksIXHbaBFYRMKWqJkc+xCMMj5cglO0A3bVY9/YhX0B/HazPXs00D\r\nd5O6xz/UqPhed2oDjGV70uRAfuvVqX3Dg7c=\r\n=KFTT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.52_1680737546062_0.3237168995959776"},"_hasShrinkwrap":false},"0.3.2-nightly.53":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.53","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.57.1","@typescript-eslint/parser":"^5.57.1","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.53](https://img.shields.io/badge/version-v0.3.2--nightly.53-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"947fffbf4988a20e88bbc839faa1e5d5bfaf5e61","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.53","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-NnYC+KssyxglvjpCjKVpCsYYOawJR39WsJB39R+mwXxDEdHk938E+QWx0i+baYlXZJ6WNtNX/jNmGVs6aBvjgA==","shasum":"03ea8be5b2febaf1cf1a6d751d5cead83678feeb","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.53.tgz","fileCount":8,"unpackedSize":35581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDSpp1L1ap6fobVwxOlw699GJ+Zr3tN7vSzvvtYIeZLUAiBkbU4/7K75gGelMsgSPY0JbiYI+cRby+vODMBaZI6zig=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkL1agACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrEgA//W+s/rIwZWaQm6ol/5N3CjEzLaTPgmPCG9AFDvySW2FQP+fag\r\nJJPchGP27VWwvJsq7hoW4cTtqyh0OaceVItg1jmEiSyfrCwTvwknAQ1GXSKH\r\nIHgHfmr+Nkgr3l97YyWinuTTVarhobBG0liG5xnwWal3xa7gNZzbwWg9z0sD\r\npQ6UcR0r160MpfQk9PGMmnAGJ4pa7bhDNkiZDAlLxm98NpOJQ4uA2A7hYsTV\r\nFTGuLUI6NYqUMv47wM5LGZz1d9b8yM+tU6fu5FKYkPpoVAGyHolJ6CfXABe9\r\nqQiV4T1xifqKDlxQ9UtWFyA00a3aMapbN6jzpJ0aJNMD4ylxtInUXRy3wfiQ\r\nmSvXm+62PPKfewVmtoIYKmHobgYe+DiysK9ZWcrovgRD5lsN289tzS+nG1E3\r\nvM+ZXiMwQK8xBkU7gX6nXMFObBhvm80/VOr/Y5TwKdrSrsdhe4u/hPxvXFMe\r\ngnUUyD7rr5AjosEZpICBXgu+7+QtdV5+l+2i6RdLKoLsQ3I8WAnNy/FaPQr9\r\nbmU9xVrT1PNVWK5PyJjf2Qo6RerWkpzFp0kquJ1Sf4WOok232ChF2c4j0KDW\r\nvr1Nqc8MGYTwT0tS4igFh5SNVxU8W+lWmQ+t45HMoV7tUixXqsUpE15ZE8AE\r\nJLN4GXBwbWly+pWuZeNoPCKX8SQbqqsSV/E=\r\n=tdOC\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.53_1680823968177_0.768356716458688"},"_hasShrinkwrap":false},"0.3.2-nightly.54":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.54","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.57.1","@typescript-eslint/parser":"^5.57.1","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.54](https://img.shields.io/badge/version-v0.3.2--nightly.54-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"2bb5b17d096393e670d6800a4459fc760253b533","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.54","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-CjNi9EpAt7W0ETmAO8LLaXW3+0yczNZHMlekawo3DQsCAy/baWIk9rMStShub9KRF+bC/L3X6zeGzZNJPz581Q==","shasum":"a7111936262c5585602413a9ae3ff45041b9e77f","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.54.tgz","fileCount":8,"unpackedSize":35581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/Gc1YV04cw+qmPLOy6N+82pKDvpSKqaEuELjv6WNdFAIhAJ74CmAjrIub2dCFPuZ3p7putJtnUJ4BpCtZHkZI7PYu"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkMKgOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpj3Q//QwZXBBjtZ2RcLLNQHpZnWym1CJj0eXY+oLNlhd6s6eV8uwIZ\r\nKL03IHj4CjPZfNYczWXI//q8kwU69vwXO6KP9POLgGk48UiL/8gdQTTUg97h\r\ndrJmdpznXG1qOAme1Xetz7kWJE1UMg94CmWjFt7gLr72HRn8Ves6QCym23Rm\r\nBGAhQn+8+y8qzXHB59JnpI6E3vx6rruPLw1IRISxtI/5wTKvGb1EWZiphr4M\r\n59Jo/xs2uJmDOZTwr1eL++pQPPZYA62TLg5QWPUBvrS3jUqttsr05R+61XaC\r\nEUdtUn4HEQiMpxDjV6HV5rMbvqqsYNF/Ct/BfAedWgzXFYYK1uKMe/B48GAi\r\n0Odn7zyRLjVaFzM247OPpImOsYx2Sfdm5N6HE56T3+VXk3XB03X1g5s0Sprx\r\n4F0PK+UaQglWUYNH6LihDeA3S3tiemBlhzN4eJ5k1ZPIOYszZbN0dl84Gupu\r\nVZv4P/gi6oV5ZhrwbFjFZlk3wqmsAgDgicqW9ouhgv/H/CJ4lQ25upZVeLFo\r\nbV24LyJBNSyHgxziid2VH1G2x8MkiwHsxIFaZBo0+MkjlzA7ErK3Venhyyd1\r\nYGc4UZ1bPBA3p3G0o+EIYdwGY10QVlE+zAe7r4ac8Aqx6Gs5I4USnPJCL763\r\nV/sanEHoWEsO2gk+wXcHKoZv4TD+4OYJXjg=\r\n=c6d3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.54_1680910350422_0.014546999954774709"},"_hasShrinkwrap":false},"0.3.2-nightly.55":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.55","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.57.1","@typescript-eslint/parser":"^5.57.1","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.2","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.55](https://img.shields.io/badge/version-v0.3.2--nightly.55-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"8f3bf8bbae7b430b60cd1c7f670dd405cd62710f","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.55","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-orKZnuaadxkhM9KYt60ifLXxAXkMrFaMWVzK4zNAN9+mdx0EkkKuiW4+eqLIuZ1ALLwiD2Ej7S+tfveRWHOa4A==","shasum":"954c0bfad362b62537b08be5b546c6834cb775d7","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.55.tgz","fileCount":8,"unpackedSize":35581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAr3dYuMoA9gxwjH1VsLWH/N/6ZyLPdzoKeSeFV4RgEnAiEA5DZ09wDgGEfWN1QNNpFStWLYDPJVhuZp+mGDnBq4M28="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkMfmVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrwIhAAnsle9BlwVy5Kv2ALYN1AtEs2oqT4MDAsUjJQUS7DRW/D5d5s\r\nz9v8xiw5OoNvwrh1J+S0DShRC7F46sUAuNnu1aCfmHZp1PFW+rFT6kdGKGjk\r\nYgfF/mfjJ1o2x3MKwtz9VqxNpp6hD+sWcqgdOvh2wAXdcgdL5K/7GIE6yMJT\r\nh6WtnaYcnV/eg3tXgxX0utlL5hmcAe1pbzmQ/qTZgYkCRJ37PNfF6GOOeT51\r\nBAFjM2gxClO8+widu3oHbUlE55mEoLFdc5CvgrD6VJaWrrm7wMMRLx8rIbP5\r\noGu7cVH9Cmi3E/iTSGuDZfJAlXkvaCQVeQVYT/N3mLQxaHXRwa4UAHlLqZhU\r\nESBwqTz2PLeoVdnQ9KVJEcRSNEVXD7YrUXPTjB6czIJ78lx6LTUOyWvNApdY\r\nkyPQHhYNzVQxwKAuQPUqq+GWviN7D5w3XsbNUgM44WFVOpNGSBltFolV9bZe\r\n8rluLFWj+w7tparZtLDoHQLDx0RR4RqJ6i4FvjCJKKU2P2/ZeSWLsloY4VFi\r\noj4YHYI2aPAoSYK7WJMB6p7WTx/ULBsa3sEEdjXm7oAlPXXX7EtS2vJ2wah7\r\nwzvEvliQcsv9siVoyML2giL9Gt+motMr8c+MZjepDhd9/0p9Sq5RMZmNKStN\r\nDFlWBvECKdscdA+tvJK0hhFTTH06Qlqbcxo=\r\n=iRYm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.55_1680996757580_0.07295763514170517"},"_hasShrinkwrap":false},"0.3.2-nightly.56":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.56","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.57.1","@typescript-eslint/parser":"^5.57.1","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.1.2","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.56](https://img.shields.io/badge/version-v0.3.2--nightly.56-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"3ec03ae4b2d04f6f6253ad8491564b49e29fda5e","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.56","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-aKrOp/sHOsik3WcnDEiUJvu2F3Cp6e16Rewu5QEbUnOef86bJfLMt0Ew4b9+zeODsA23xhZXkAy/CAer8vMT0w==","shasum":"bceb85eeefe081ff8bdeee04f5693585c5f2626b","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.56.tgz","fileCount":8,"unpackedSize":35581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCEpBfZ15BMegBVpauHNIFms0tbQzmZxOt12f7KW8tLJgIgHMZ+aBvDWVjgtxPam9oFEHnIyRnZ5Ew6Lj/VMIKZvQc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkM0sRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr0/g//T+NC3AbNz8ShA0RQAuPDBnSO52/ykCvyVZojQmIVtjpzRjH7\r\nh+qNbq+PotONO87o5UBSib9IkItB2U1SDKvVUM3zkP7ORPy/FYy5pGFpPItR\r\na40f25C382DLG61hmwzn82NCs4GDb9oMN6RFYBfFDLyGrdLAQDsly//XnGE3\r\ndwgtet8u3O+SemMMY1qxgVtzUy9goP5sViRe5cOfL1asIvcGlapUfM1mRM4d\r\ny0k2heXVii5AcRBzy8FEbDpwlyf8uX9D0FPS/zz606Nv/x0lCLZniYX0peJK\r\nWKeInEqbRhC5jXTNAs9P3Ovnc7lZ2JK5S3fN4pe6xHf9iTYypAXz1/RFtjN/\r\nBM7S3vsB1qBzqWJif+kZT1nhtmda8bh9AQqQSlswDaK2XV7yLUppMQxoBlkd\r\nwjA0ewyz/1JrYzBSF1P4wPI7lXbH3mWWb8329E7eDSKvRwGHmfYaAGB2Bypz\r\nAfzuHwNaHpeN5ydySThxv0LOWJEadkwqoWh9+C6MAJ1x+1z7fij2CZcSdgLn\r\n/iPJnBSq69J/LIGmduu745Ygp6oKu6G09/otrpEcw7KqB6BjGJ3FguapgGi5\r\n+njcqJqsyiWS4yrKTaWjsS5+5Lcd1WXKJA3CVhsY5HJ8zVcGKsuX+KvbDZP/\r\nDyWN67zi+b/5Ru61lHuSnksuipauL9rvRhA=\r\n=sDwd\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.56_1681083152921_0.9641271041742343"},"_hasShrinkwrap":false},"0.3.2-nightly.57":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.57","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.58.0","@typescript-eslint/parser":"^5.58.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^40.3.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.57](https://img.shields.io/badge/version-v0.3.2--nightly.57-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"9362218214b15be9ae849e7740bab10e208ace5f","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.57","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Z4wlxYHSsMNgknkXGp2NR7NWas8CTmmgL3lZp4HjcibjsUlIT5a0P52tfb3XZLtXi3jw0KMb6sToWsOEOw6neg==","shasum":"bb3e2b170de55c779459d8803f56775f209bc347","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.57.tgz","fileCount":8,"unpackedSize":35581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZJVdrEgIrg+FBnHD9KDt7XuEgpx20zDIPCa3AEQ9xzgIhAOwIy3I/mLSqT6RyLlxT/Ae/WfnF1r3fM+C00pOhvViV"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNJycACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp6Vw//RJvlZI4xcFc+6t9QPfp6qzHwQ5t0dsKE6pvvynnQUM61A4JQ\r\nlRd7yBMj5DwFWlfhzZO0zNnmLyYsqF+kMlAV3roMWLC/Rj64sXQEEb6duWIF\r\n6+VqjCvSJf2Y4oq7tsDMPQJCFkoB3brTKgqm+095JZKwNxYFgil4SLLxOxwH\r\ncQlgEPW/iLT0WjNs1nMT52AiTW7QzFMRL8d/QUdScMR9jlBnNwFrAbnG+639\r\nBBty/3sRFlqBvmwrYpi5OcboZLZnPoJSnz5QtiKW+VEBhxmugOvw26CIuzsv\r\ngPghnRKr7PMTl9i6IgyY8bhihB43R4UDIWHDEYRDPsq6ul/+TRnm4iMba6+z\r\ncqcANt5uZLALl6IsDaLGokHTpzWkUlwwcHBno4pYHo6YRPqRZtczoOiMfDCi\r\nuMPOxChAWngiHUFkHVWuxa0tMskuPKMIA+HuqOye2nwO/lhP+vKfIzF3GPe3\r\npYHFlALjGbjg4Q55DewAXnJ0qadHoQqjdyx7o2x5ajYWj2nPB5dspya3fL8z\r\nSrdfSqZ24UWJKom2jPydYIvAIYsLiiKaVdBILrkh1iG+qeQvmUi7Rmo6xFdq\r\n0xrZq/hoQPmRMOOHMUXRoVp7gSe0Mg65bEE42QExlZO08bliVKfT5h/UkKuS\r\nN+JTvMEmNJc8KzJ2O68l48xkl5R8q8HemIo=\r\n=0Z/n\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.57_1681169563834_0.25170186960779817"},"_hasShrinkwrap":false},"0.3.2-nightly.58":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.58","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.11","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.58.0","@typescript-eslint/parser":"^5.58.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^41.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.58](https://img.shields.io/badge/version-v0.3.2--nightly.58-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"2e8dd2769e404eaaf00c579f6c63d44eadb06dcb","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.58","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-j5v5pSrGXJnB//DZ0YVxfOhKDadkss/3NMhwa4EGA8wsklD48zaGhbQHAXE7kM4QnZjgw1ILrkJamOFojEhXuQ==","shasum":"8c88f71f29e2ee3a384ee32527c91db8b65063b8","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.58.tgz","fileCount":8,"unpackedSize":35581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICjhs3CCIQDKA0GX2ZV8Y/X3LbEkc9e8HBjN1VJU9XZ5AiEAjtH9L3hlBrAEbM6A7tUUU7ZHnoGRAV7eK4QT/Mm/igk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNe4pACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr72Q/+KlTSftYTMmQD8vf98YKxc7g7EMJkYUKXZfy89rQV7zjnWEan\r\nx9xNXGi9EA0DzQtCam7lfwMGgwynwkyKmebHM5Kta+747QhU5qYzrR6UP9P0\r\ncBThsJP5PNzrd76TQ93LqqOK2agsdJ5rbcDGmGF9j7eEtU4vKOtg2c0JijBs\r\nAAL0194C+xqrUqL2GXK7Z3A5c+ALXEfuzoj9JGtVde8Lf+4egKjQgmASdw9l\r\n1gqvpqzaNYhd24IOuqot3tUryLZkVoDSl4d0hg71sG5MdMGjOlw5XOPY9Bvn\r\nkkB3OVyrmbTsYGyK5VP4/zDPYQmSmayyL7ePjO45rHMNt0zrsCwIDUhnYgNh\r\nRaxd0AlOiaOW4TMsrYezgLVEXzjUe2K1lmBNcBFKzWeS0Pn81rGDieNk0/8i\r\nii0+Wc87ffnG5V6LewYX8AdI79eevXgIJrn87n+5EXRa29CNmHuS7TfWQLiT\r\nO0oZ/P8sq/AwJcHz2HoetV15oFvQMv7nxQSsdyO0gRnMoh5WVphmbiG+AzLl\r\nfRRu8JXuCVDbiV0yOp/MYIUteYYvc4l1VB2sn9io9xBdJHxrk3I85AmqrR+Z\r\nOf+6HojAvQOkIEF4MNZiZkci7ys3WPBzr1wEwJ8rm7GLjUIkfcYW5/sO34LE\r\nHMZUMe4qK+roITrDUiuRrfWH93dLlBI0xyo=\r\n=N0H0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.58_1681255976928_0.9212815157650367"},"_hasShrinkwrap":false},"0.3.2-nightly.59":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.59","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.58.0","@typescript-eslint/parser":"^5.58.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^41.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.59](https://img.shields.io/badge/version-v0.3.2--nightly.59-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"de2ea5c943ac74139a51a6848c1195e8ab67144f","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.59","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-+0ME0SAcpZ2OxhG1VCfJ/pN574s/i4ZzuTTxa+NRmB1yIvLVw+vp0NMgApkipPqNRx+R6p8UXbQee7KKxTwziQ==","shasum":"a2fb29a2b943edebd0f27e6adf4204043d63be7f","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.59.tgz","fileCount":8,"unpackedSize":35581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFrbWp8tolayzy/AUzBsLfI2nPY/aFYRt/oETFEj7lqyAiEAxWEsBalx0UundGVUuNaXALHm85KGji5b7FiWEFpwWfA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNz+dACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoINA//eYvqUKXGsNrQ8o/cGJbAyiq1ZJlA0fcWeF+7y6DVw/k3ptQp\r\njO8LnVjlzXdd1wwYo33CAwkz1C2+lLFGjbM7mNVAKl07wkZfO1qbHUdnGWsy\r\nSkNZsvYSfmps3Mhuiy+1p29+OHkUG8TvXBRcLmsa/CKiWYk5rrSo+TDegiL9\r\ntVgLTmgK3v03JoQ32c3RwYcCBgnYEdeI5Rv3sqtv+6pHhzTO4NEmgiKDgfdT\r\nuuYpsmfmQ32GZnrN9dd37ZOYXenlmdOkfVqtxgO2Pi33oG+Yp5WZWwTcia78\r\nS4A5+XEDc/Sbq5XlHMH0ZQ1Y/u4rQe11/7NdGVP49DfsVGGgh2fLIjzFd8CQ\r\nOa5dKhyGnUqzP1lsfBfkTd4L9LVxtlAuPPwFdTJNO0UPo29cIeh/BhI6SjLH\r\nrDJDXK0KuQ4A/xHToWqa9sHuHR+ZzbFxjFVTXXojWksonsfjQhLB+WDPhlmk\r\nLz0ec4NsWrYqAJhojqkkTaMkUVgzKb9QoRIUpnF/OU+6OZCOAJ+6WXCQIXk9\r\nRzQQ+k0jl/3xJUko4glr/MPgw7wU8/sk6if9kL+Nxqw050rfkOCuQPBSodGg\r\nkOGyqf+ZQbTJPmugY4bPXj1NV9AXdv4hgV0M/56UjGpkAMHXeSBN4eExmVth\r\nuYWOPLB6Xrh8LKOIaSNIE9koY1rwvvYde1s=\r\n=hunf\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.59_1681342365100_0.2861775769416328"},"_hasShrinkwrap":false},"0.3.2-nightly.60":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.60","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.58.0","@typescript-eslint/parser":"^5.58.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^41.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.60](https://img.shields.io/badge/version-v0.3.2--nightly.60-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"39a2afa740fa8d868b253eb9d006b9daa8f94539","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.60","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-U84pQbEoIkak8jt68dI4basPGnoKbt/MU31L26bmSdqrL0QUwKLXUNYHGvmGhqfupvV7Ovk+jza0O3N2FZs1Vg==","shasum":"1041d6ef7228dcac8dbd11a3b573f643e2d7638f","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.60.tgz","fileCount":8,"unpackedSize":35581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1zuDzDQF1q0lbF60Llx5YmlsMTTqhtSHkjXZNGbqE3gIhAKtP8dhJ7vxNswwRBaVozptnfws152d7bQFnXcvaDakB"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkOJEYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrVcQ//bIUFI0dpY7MU20hVjXvtZzFaqyWgWoMN6sRN7QwxO31A3WX8\r\n8uBQ2msafqKdd88IQwI9/qhG8VpvhjL4cKrsbfLJVIB2lQOFEtXXDtQ4fAi+\r\nVt2o/fJQ1WZoJ3v/zC6q4WlsDQgTDbl3RmdTPjkqRPDirmkE22/uoaidNWnN\r\nApfB+USYQ9i/HhVl0qynh4ohwp85SJo5R8y2RGEU0blMyqZlD2p8xICqkjtb\r\nVU5s3JR7D4PfcwSXKHaHLbJ5GXuSzBSfK+7P3L7LLqleOABJ/oY1xHnAGIuj\r\nFiambGIKEOlm+npO53jQvb+loGHiGRrH3roZE+gw10Y5CCriHebP2oz2Vxmr\r\n75vvmOOjg0rTaiGzv4wtkiajm3aYZCeUXxd3QhNI+wpsQa/cFVK8MR/Qoj6g\r\nsrhtZzI1+fw731LURYP3QLiPGfFTkk5r+ETTEGbIwZwx9eyOi+F59AUJKxia\r\nGrwT7NySdDSjZ1ZIGSNxNe1SReNuWEgjnt34zEjHxbpXMd3zCUOOwWmOt985\r\n3awaoShfC4+fIS0rehaSmt8El7P8S7vIqHDgvxGqplBKRiq7RDw5l8e/HIzy\r\nQUj8t6/uA9qUVNeC8792m6pbL0X/KzX1PkdnP5Ig+dr2/6NlAqvDYPqjU0WF\r\n8Ap+6fZNIitC1a3D34fUq6SdkWRHilY6SBc=\r\n=lP5z\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.60_1681428759786_0.2446639669635169"},"_hasShrinkwrap":false},"0.3.2-nightly.61":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.61","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.58.0","@typescript-eslint/parser":"^5.58.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^41.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.61](https://img.shields.io/badge/version-v0.3.2--nightly.61-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"cf799ac414d64d16703cd76245933618a492a668","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.61","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-wHO+Xhi5XVBMxHV96VMe1OwnX77ASRjI488xFJakQbrIJqWqUweenfqkB+gkJeqgAvMqTGrS4Hnmwnh2IKE8DA==","shasum":"f514ae55d9d4409a9063a97dfddb00accdd3679b","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.61.tgz","fileCount":8,"unpackedSize":35581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAkEQU+mXIJpobp3hfmEJ2dVTgFQGRnDmCx7ixyYQevDAiEA24FuNT61JM70a1NKuGNfNjCa8urqF24ImoUKT1bJqtY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkOeKRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoTpA/9HyTqyyltqordlQfcz/LuxtB9yW3/El2bqxkH4tK3EsKqsPDu\r\nF4qLhvPF3yeFgfcfwuC2tOWZube6Ij45F1D2SdsjqKSSWdR4mjTPoiPTykyC\r\nzyh5YTDu0RqIkWWI8JSr1FF5mKrAbneRZEwX3jZbt0GDJ9KeQXsz4iLLNFSj\r\nJzQtCkX/vzt5p7my0LZD9FWLmtV1s1naGl+zUpODsnY33Pzl9NiPKgwJIEWe\r\nE/DYH6sqZuPm8MnvR6KLW+ZcdHAcAd2sMG40srBwFLG+fgIw2jRZbiabGgLR\r\ndLtuOg5DZI+oXM8VeO5qVnH9P2BmyINfpmY9alW+HpBOfPKqw5ME9mcC7Stp\r\nCUbP65ZeWPrrFLWfsMkJR3GciyjdvhuZjRjeWm2bzgqAipBfSE5965/xy3P+\r\nZHIsxkuBzVIsjWgpwvRyZCRqSaH+2yPIILqzsmbfcGHUzf4qTctPzejRvUP4\r\nYWIwJWYxNLNQd3vXaLGkdtYwrIpWz87ijgZWZhlB3occPSyHyrF5lsSeEYY+\r\nrR27VfmBLToZIlc66b6FFaECjTBnBc6Z4+LNrxRgFP3VbXcrvQ3gafDrrHLz\r\nlWXZ7xOboKt2w9bCWWfkUkHqkK5ij0FrGQ5SA0ll4BaZcCFbpNxpzryBVXpx\r\n1ijYZepp2h+zM8rBYAF3aE3LsuJgsjZr5n0=\r\n=nhOB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.61_1681515153546_0.9149180773587586"},"_hasShrinkwrap":false},"0.3.2-nightly.62":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.62","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.58.0","@typescript-eslint/parser":"^5.58.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^41.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.62](https://img.shields.io/badge/version-v0.3.2--nightly.62-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"76eab059a8e41af653d6095afccc7c2661735b8c","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.62","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-7dFvPH3jS60SeExgZffV7iM6GHnBzhVLSIK04zBKbaD3UZxqVT6rPXd+VaK5TRpw4r4DC+De4acliDVdd5kncA==","shasum":"ac75fe131b5c3eba5e3780e540ee2bc586c05123","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.62.tgz","fileCount":8,"unpackedSize":35581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHyN3mK2fXzQxLdSn1uaeblcX1uuJsDOlMSEqeYHQ7mhAiEApueeVRlfrwJcbnbPbDbsdMo3OYV4OprnM9DZlKwE8dw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkOzQUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrTaxAAnr6GNR9L/xQfxtxLon9XoQh7roNryqqE06cXwx0uEh9UmRB7\r\nIB3qQJ95xplWQ7jZyF7tyVS+b0MaoXwd4zDKikPicSYjTbYPHK5IrY2P1Uq4\r\nYU1bXKhMhSjsxbRecR/B05zISvkusV8uYPAJOZm9DFacjKFlxsPHMFM+E83u\r\n+2kJsRbdNKvgtZt5TWUuJLuDpe2xPpqnPk1CRsT3OZegVh7+ZyXQrD9+SnTf\r\nZhjCWtl3Q1i4yKwajBEyFCjAzIWhETt38r7+hfjmmFk50SAB9BVJxj7K47r0\r\nqplETUAnK/y0xqpUGVxoq5BekwzTafd/ayaFnLTDwGB7C7JLusSUein0zXdy\r\nd2sdkht2b+pNzw55uPZI+jF9/oXKOh/jyuwVqTvxEO6dsktwWrO0+d3hlnI2\r\nSYm0Ypuxfguj0UsMjc9m5C4fDn3DDvHkbrFG5E2P491A3QLFXADzdvxAjEqq\r\nhyq+dXFkSG86sGv6DWTA5sq35csVFCwB+wDea2aAtITcu7Kqw8DQTFUN8wmx\r\nC835/MGeB2AxamaFgRLDuGrTmjpsX43N5IVBLaVh7Nf//NeFO+Kq0O49DKGt\r\nYUP5fIh0XnkKkDDxQFhUHeltjXwINhk0ug+MKe3GQeOJ53ERIFgahpAcrwbg\r\nLrnTIUR3BDmWdfFZU4ZMg3aXrjOpAM3btOY=\r\n=CMIV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.62_1681601555823_0.5698814866825024"},"_hasShrinkwrap":false},"0.3.2-nightly.63":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.63","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.58.0","@typescript-eslint/parser":"^5.58.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^41.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.63](https://img.shields.io/badge/version-v0.3.2--nightly.63-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"44583fce418bd0a3b9360e99c6961ca74ba9b773","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.63","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-OTu7XaCuNZUKkIJl8Kv/5bATqNHIg94PwhVoaDnMgSSeAibDVJvUW3gayk5p+0NbjhYhQ76bgNqibfp1Lkkevg==","shasum":"f511b0c0a1cd9edbf160580466ad5d947f77a585","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.63.tgz","fileCount":8,"unpackedSize":35581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHer9dvVqXgTmKsNCmXsY3oK7pNqwV4wlQ+/nlI/q8OtAiEA+jupPv4Ua064Z1JT1eLDkmN7Wii4VG19Bg0rxFpBucM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkPIWhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrLAA//WQPAqcg93TY8WdXvlkAxfByS1n6Lv70EuZSgFzzhkuFqa4CE\r\nyPBAOTLYmeFFywOOnUTGjcXIwMP7FFsPk/PuySqeBWrLikffXpXH0sPw1MjS\r\nXsfefVxodTqMDgUnx1taLFhiMGkBSAMfeuycodpmZMjt6LtEDkD0yybSFUDL\r\nN08QjWOUZDQG7jYejOTx7IhRuM4tYYBIS33j2YPBBJ0uT9Fk53MWEUki1KOM\r\n5qH6dQfyvAD5DorBIL4i+fXPS+d/PC93+VQGDo3ujD++75FkGEXxnO5biQkB\r\n/G0UixqLxuloSsKnjDfZLTNi5eSAt3cCGgkrfldw4GW0s4bhlWigrM/RfyuC\r\ndh3gxG+GmK3Q5ooQOzzXbiTcubYfNHpnygWa5EKuWtyllNDRKaLsFrG0LAAP\r\nDAOHKpk+B8EL9n41P8AbcTiqMQzX3KqlmIX97eFjvqRxyhpEuOhcSDMLmNGO\r\nRsg+/pZVJLdUOQsog+vDWiuXvjsv0C/wPsR0KVzhj4utTug1LZupGxM1hTB7\r\nwtT4g+WteVe0D+r6A9r1/pKTwKJSI9HoMfWI0gh+we2NAZ1dBbfu1jDLnwbf\r\nimO5DYkJVdcgkAQUhCcH5zrwjFekxz1V5I4Wz/tKHARjWkpklWpr0M3NrsZL\r\ncD325sstw7+/npBD1uw2gh/fmafgctZdh6c=\r\n=Jx2Y\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.63_1681687968817_0.34036995143280624"},"_hasShrinkwrap":false},"0.3.2-nightly.64":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.64","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.0","@typescript-eslint/parser":"^5.59.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^41.1.2","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.64](https://img.shields.io/badge/version-v0.3.2--nightly.64-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"05ce26cfc60c28183e83558b32785f62dd834bda","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.64","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-UBWhvJwvackTd1nO38KLVqJqgzCCF30d3OCJqoWvd5LwRoDVletkKHtCs2tGp+5YA2+csOIuDFGmGUv+HL9MjA==","shasum":"15045666eb7eb33ab86c892fe48bc42faac6d07c","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.64.tgz","fileCount":8,"unpackedSize":35581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGA8ZOLw4zyMAOKjdEH8dfP79NkFnDsKqFv9/Kmio6aiAiEA5XbIQ27yliw248aPUUCri784yLXOmJG1wnEyuHy50Ok="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkPdceACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoLHxAAmSQaDa4MVX5lVtBCH/2r4nfW/+hw/63MXO+HkZW9pNsp+wLb\r\nDvftLpTMJX4upPE07Sk56Ito6MRrPj5ewKL2dD6eMWBouk09wCCZIKPonXEC\r\n6epk/7cRC/g5BUMoT8JcEqP5FbPR+vbY9TlAi0dcMtSreLC6Quz4fqO8Wp47\r\npZqeY50mjHMiplASDMn20Ep06OCh3ufppKjlMa4sGNAbDo0yMk4E/Afm7ojD\r\n6IRrCpG15YsV6gJuVrjFCbtgSaUI3QNIfu4JB0WnV44P9N63IBz+AbiMwFDf\r\noXy2Zq970oWW9+rk952vh8xUGm7wmuRIJZu5/QzB3/+MfF7+ZRtUI+p7nDxv\r\nPP/Ek/bg0HBOoY4nVKPIVYEd57366oZWgHWDo2OoBMWTiz1xyId73i4ifRrQ\r\naeM7wARPOd24+qv90n9hGzgKNgh16oCgltpj6nqdKBPdOcJCjU0gkrCdJv5/\r\nZe7Lc0qsR6SMchJ/YYr6mTCvCDrUGjf298LwRjzVJmTri3QQ2DqPKURvIPji\r\negNHTLD2EBk+j1BtKgkk1aTWNAnW29a4pwqdfasmjso2azpyfXwIVHxa7HLP\r\nKzdbyg5CWTTA+14aO3FCZqqLC2yIxNBcXmbes12ynXyrXxDN6GywWjgTNNR8\r\npghPeCxAjRYVmmAnht4xvFNa3ZE4m40517c=\r\n=HuKH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.64_1681774366561_0.74693619101901"},"_hasShrinkwrap":false},"0.3.2-nightly.65":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.65","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.0","@typescript-eslint/parser":"^5.59.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.0.6","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.2","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.65](https://img.shields.io/badge/version-v0.3.2--nightly.65-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"4dbe83b240e5fc5af300ea8bf901e0e2e01959fb","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.65","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-hW7YcOCKIxiP2Evx1n62WhrT4t+5ODlz1DinZzAh/VYubVQn0EUuW1ZwkY1o8jY8O+F4VoiEylmvvoEv1EjRvg==","shasum":"047dcc80503c48131979013e83db86698b8c85a9","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.65.tgz","fileCount":8,"unpackedSize":35581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHG95fekbWDctaClb8QXbByMw/gWPcVE+bPk5gjdnMiCAiAneEpYR/1J80P0YQlch33ULZUeLgx+IQSVNrMSWnMr3A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkPyiRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp4SQ//QtEHVzfl12TSvLC/Ssz9yrEC+UikUAG2NHjxI5p6vfBLULxl\r\nj09lsXQbi3e4sIxBp8lBugNkuyexD9pqsowjASqizOj/i4VVWSkqCmxIt5QE\r\nv5uVs4zjUFXph29kGiWZnhuLLL8IAQiYOLgKDgQQk+6N1PWkzAdTNNRGgy0J\r\nZlINHYpKoNKdVcGmQnpDdAl67d6mCiTqF5c+lUn0EVfsm6boW3ZuS5SZWqu9\r\nmHy+j6k1OjJE+auZLqazSHQ7uKhX5SUqTw7uwfa0co5KBwmhtmVbnC1sLq0O\r\nw/8sko9xnTTNIcFlemWecaaW0gkyc6A+pjOYl3LR75vkdFcqf9F7BoccifjY\r\ndG6All8Sc8s/+ZSIQW58swFKhBz/NoqBaaO0n371hnMiZjnUC1Q4UgJqhl20\r\n0ctXz5Xeww1KkMjG4iY1suCjN1E++RYhEoxhgUCXz45inZ430FbAa/VGiOv+\r\nmU4YI/a1Zs0vtmV5jhjGmUL/9Q+6/sLjJm9vV7sGpyVtE07iwQV431xKd13U\r\n985AY3eJOmEp4d5yMd+DpCi3HrtvaOFBu46jWVRKJpID43wlRNCDzlnvCQsL\r\nlE5OoUAtALINRFN7RBGAbkZ7gEKlQbYBKAfyZoUyB3SHZzyRq0r3Zj/vphPn\r\nq9PM95JU93PJqLsn3ljnghayzVxVGkNHuOc=\r\n=uBZs\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.65_1681860753151_0.07828849981961117"},"_hasShrinkwrap":false},"0.3.2-nightly.66":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.66","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^18.15.12","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.0","@typescript-eslint/parser":"^5.59.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.0.6","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.2.2","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.66](https://img.shields.io/badge/version-v0.3.2--nightly.66-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"74a873dfaeb4d6e254e9f481dbffa18ddc56ee6a","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.66","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-UvQjoBzhqZfQhfZN4Gd3I6aps8vpkcIUzXMrimz5kRan4cCApI+z8OnGjaSg8fkdaLI3XpR02/ueqNYwRYuH/A==","shasum":"81b6c971b52b5c55e72171b326ff2cc8a989b5b7","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.66.tgz","fileCount":8,"unpackedSize":35581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBfoh6E5DEsoHSzG09ZioMeXBU8O7EGhsjwqfBmQ9X40AiEA08uBVCz9T+c87LBHd8rs7y8ekq1o5iv9JX4/6pXb+ms="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQHoQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrRLxAAjMJ0ZliMkoEmgLTL+4VlzNqu/exnXu1nXLHFYMjmf5wGsFEI\r\n2dG46P4ovo2bg+IfLV5rrMhAbWyvqsjSgPBQoG7DR76HoDFd0OhHeIGdKJgl\r\nzwuBRm/lr/G7pYLYhtLxbXFMjEOjfMRIuMhW+G6nyFA/vw7JKgtSudu4+llX\r\nySN+TDgs9ToeDymvBPQxzYlC1OdWhvmVNKzp8pGK/jZmQCeqmArgV4QWrm+V\r\nQSUYJAMG5lKIcHOptD9J62TUnY0R+ppHxGiXr71dYZYqPoN7/ChtBEru1VaM\r\nWPiZQbQis1xwiVIfwvO4li8ql5x4nA76bDPb5Z7yw2rR+3vLIKbENk1X9qGE\r\ndgdL60g4jfnvWwKHXXbmoaNSl+c+noX3x6hlxLG0kIyc42BBXMWBG4+wE+NK\r\n40fIDQ5GRuXdZCRkEej/JoWHLQuJ510hHUg+o89dY1MTbNEEOFMa1jjID3Tp\r\naZqAjCwAgbovmA5LNQ9/9rOGh2Ht4qPz6qCs22PyFIDl5ylpqxGU5zu5/Vkl\r\nW+ccdc4YXazvfgJcZ6m6EWiFUTLmtdUz6Z2sNx06hCpExsnPMEODXlvIm1nj\r\n84O4GDyHzoEvwss7S7G4uFntAbJ7ZLKRw9xJiSrKj9xd4/oUWQXupU39iZcr\r\nM10bz1SLpVrWP6R1AMb2BtQ0BjE8zGjxhbY=\r\n=mokg\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.66_1681947151801_0.9747301692533048"},"_hasShrinkwrap":false},"0.3.2-nightly.67":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.67","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^18.15.12","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.0","@typescript-eslint/parser":"^5.59.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.0.7","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.67](https://img.shields.io/badge/version-v0.3.2--nightly.67-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"3e95246efa0215b41dbbd9d5125aebcdcf9c7b38","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.67","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-ZEw8OTra9vpTu2g3bE2vbe6caNOaVOrl0w50IR8HJcbaGRdb2JVMjkgPSRd9QagPLopk5q9UGWWAhIWZvcv37Q==","shasum":"f2f45f0b30acf3baeafba238a9a57b51631d9c89","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.67.tgz","fileCount":8,"unpackedSize":35581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCWnB++2C1AtSIgAVEW4ICJqc/rux5Yfq0+kAt96GQasAIgL79mQ13fWM+EiH5CwLEz5bTMQE0Z8htGc9ZhmOdMIHg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQcuaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrD7xAAnuvChQ1AWG4f3IHtqZVmP35abuN2+sYZR43VoSxCenlpF6p3\r\nMutvgUtiF2wQ0asnw7514GyfreH4UspbiJYmmmEcFQuv9NKWOcrvBDA1cYIp\r\ndmPjFf9TU3YsVzs93gXj0FJAXx/NajgVCPeNUlV4TMEwWzyl0qs/fjqqe9+2\r\nYTcCTB3xpewMu6lPbTNeN/I8yXWXkNNkyeZosiXqQgej8zTJybAKlO3XqdDK\r\nOZroLuBmJJgIDvmP+JXh7wsCDt1PZygD6Klbdwcp9abtbmVSXM4CC3wHqZBU\r\nTo5VW4ZAlx9tj8iesmv0uvCgHks1SZBd10RzVTqC5itIb9wRum1FrImI9MEE\r\nfghK3CJ0jG4oAhqbhJP94x9MqTjGq6yp5ux1WdSdiMvK/ZRyf1fAGebfjPlJ\r\nGx8PiQ18w8535KEr4FfSRsaoV8HVOnD4K6P2e80+LmqZu+uHH0TuMNRxvVBe\r\n5MqALJrulXkl5YBkOxAGbubETvqgoAEGgOJRoIeJGHdNfr2saBQmlhZIybW2\r\neZhSUIxCBCiInkPWEgQpG84nR9UFNZh/f0MjrO4KznzAR9f4BAdW/M0OtYx0\r\nRDUWzxyfE5f7N+96DosR7rJ2AXkcda/vQlL0FF9/Tyg1ePlz2h8ey3eJtokf\r\ny20CnJx9HVHMFGb90l9Gvnz5IzH3U2bldOQ=\r\n=xYAl\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.67_1682033562646_0.70015006618854"},"_hasShrinkwrap":false},"0.3.2-nightly.68":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.68","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^18.15.13","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.0","@typescript-eslint/parser":"^5.59.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.0.7","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.68](https://img.shields.io/badge/version-v0.3.2--nightly.68-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"30d44007b057a6b6d3895b20dac7b8b203e49dae","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.68","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-UleU8iInWH99bJ3zHqQ14+V3KDe4ifv4aqnGpS/l2pFtmSohDGnR3puws0IsIEIZHn1J/uM4kuUHSlwZIH67eA==","shasum":"88f9a7c253b6ee61571ae0deec7f1cdac409cbeb","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.68.tgz","fileCount":8,"unpackedSize":35581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGujzJbS9DJdRHPCpt3cSjuI/MXeT9FxO6ApHGGAt2WJAiAdjQQ6sgj24CAmimHdW2soQs6YtLqX4YY+rLAzU/tJeg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQx0KACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr6hQ//bUNUJNq2LTzXz7dJDfWLBJbsJse7/UIUMmjy9ve2VoOR/6/2\r\nDRbdnFqkpicqmT9kYl10rcR0XRifTD1jQeerNt/TDLIayJ4awn4gyjNVf1cx\r\n3D9Cm0K1Tp+2XUmQexIoOJB4s6msWJLM4XDRL6Qme90xeD1ig8LJqc9fbW52\r\nwexPK5A1DY5J2mDXC+vSfHzQWPFZ0DFNJYAjsW5OaKfIMPCGhxcBYEMl8uLD\r\nE17+Lh0Xb9KVMYzn3uS8RtaJnBGeZLl8expJtlhpEviYd5URH6NT9O3dEofK\r\nM8XRMHAk/aaYnTG1b6vy3i1MwMg9kHE6xPiJExZQLBB1WuT5n5M7FfcFd3DV\r\nRpG2NNH48nU4rFZGMqhI1uihycKw1N3ZUjlanMN/zzavQtKuxNSAsqKGhg3J\r\nUeezZN8UTQVFdgXwEODEMv9bA3Jbo60LdN6GcVfEoZLEVvhnyV2BAuYBUkJE\r\naQOfzRikrReNDudqXDy/JQ3XTRNFdd5qsdsEIjnsGFThftJ89aPIPVmKR/rZ\r\nlH4/7HeA1Khc0uLHcVlWX+6IG8IwZYfjBPhoMXc5IP9TupScNYNh9fUHD7+a\r\nL4LDtSjoCRbYWWxU9HF5Q1Z0Rp86pibnapip+a+eKY5zm7iu758yQbSAfnRa\r\ngKW0uTCd2J2dAO4wQ+ts3ASWmXqCc37wVmE=\r\n=VlQn\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.68_1682119946148_0.4457282053182716"},"_hasShrinkwrap":false},"0.3.2-nightly.69":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.69","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^18.15.13","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.0","@typescript-eslint/parser":"^5.59.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.0.7","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.7","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.69](https://img.shields.io/badge/version-v0.3.2--nightly.69-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"036932c55dd79860fddea7fd9e957fe7bd40a7a7","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.69","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-qAwcusvainoIdMe8cKk/TkL6HSfP1YSSJCHhmIQEiXsCOLVxvQa40+8OocFV0N05lADffVR6575rWcW+HTzs5g==","shasum":"e46630676e6eb19ddede9ecba2c5a74d3eb3693f","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.69.tgz","fileCount":8,"unpackedSize":35581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDCAHj3Z2JklhA7WssuM9gchR2PBnvms+EUFT3rzmLO5QIhAM9wH3pYNH0ATeNYeExQwhRV71QDgUCQvO/eqPoV6APJ"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRG6MACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrXDg//d5A1UHjRwMaWFHsbHkY+2F0Op9wzcwmFWpIeKA4/uY+RzOhD\r\na6f32bWpGmX4BRp8+e8887jWXrk1htTE9wSYNazZJbMJwAJY4XSHJXbFtDjp\r\nHBRhww5rhSAuT4mbwcigki5XysGzBnPjTX7f9Z5sMPR9C4Y0mv5ihQzvtMQn\r\ng1mVXRcLuIc5n7zOEUPFydrquABZJZCOwHwGqYUhKchRgT8OscTcnykGu4fd\r\nREtePum7r9rTifMzMW2x5+gMMYsP/4DWbLT43iBPdnL4QanoWhZX8rQO1y8h\r\nDwmGFb0Ve7P8PIEp/CG0SGV3C0F5+zq/moQwRw+N2jXw7mRHybs5mXYbjeaU\r\n3E9yZaZ57fqaKnt+khQt+1UyglG5ew9mk6yKCP9JlooMfLTYi2k0BWJmUCqU\r\nflYeIxV33L8nc09HHwTXevQkkTra03B83sbhb+chcFgiQU3TTaNDNuQOdTZ/\r\nWwFnzO+hE78v5aG5XJOm5puVh1VnV2J1uWWys2axnj4k6eFIwoulrD/1Zz3z\r\nlANNAPFExxCIxuEF4GO4TLtKYJd30B/5Wf2nQlo+khFpGZVdlY+MNrnOH3jJ\r\nBlLT9P7CP2KW9a8MjSfFi99F6wscWjq3vpyfu6jKLMAZt1yEa3Bu2MYlJsc6\r\nwQIXYCJZRkV3Te7wmUUz9YYlcJXjcz54SAg=\r\n=+wEi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.69_1682206347979_0.06769403107020389"},"_hasShrinkwrap":false},"0.3.2-nightly.70":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.70","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^18.16.0","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.0","@typescript-eslint/parser":"^5.59.0","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.0.7","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.2","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.70](https://img.shields.io/badge/version-v0.3.2--nightly.70-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"b8b305c11a99db3a5f40759da78134ea0c1e7322","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.70","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-IpRlGuDmD2dJ5yXTU/mni2YRHp6/7dOGhkHyL7Rv+Qis7NYDQlHul3P1j2VEkJoc76NTdwgmEejux0DhFoF9Hg==","shasum":"f7ce4dbc88073fd14f65a2a234770100491352b2","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.70.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB+kF3fZ5u9zK9+qXdygrcMnfsIEe7C0QVA1RwA6kH9tAiB08CGmkv2yKcHPTAJnNrAa9oiR4j6vzTskPFiAvKAO0w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRcASACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr6VQ/+PXs/XuEDFin/cdR1d+gXrGr55IuDB07A52glFFcWX712hxNs\r\n3+RDwZZRkgH+ygxcBWmeTMNFB3uJH0SV0nY1xd/IuRff/fssIk2xUjYdSdFx\r\n7EhUBDIaF5itRPBG52jBCHsgDGQo5crJTRgeBeyscuS7c9FepoNdFFUZAEsJ\r\nRgR/bboFuGLvRci6/pyl4Ilc6H8dwzhXmGen8o92jcflTWCvxJ/rKyzON9b4\r\n3XaD8yuZBqo/npov9JqvurNwwwT7NcL0MWZ2yB4yVzHNJjTzT9m+cPvmEzZG\r\nBiJjkPaLhI0Be1Jm+XNaKQlyabiAzzIJEYOh6UQtDsRVeIj6qBSE38Un2Iao\r\nKaQIovoeZIbrWnNQeHaPQQLHtPIFT6mMhuvDEkDoYx61xHtBQUbRJdtmZtmh\r\nWE5DgQdOSNhCoKuUR1cDheOxNtiZ+lmjCKvNOgRMQ15PKivgNyZjk04OCgd6\r\ncdsXniQtFJbizvinlDzELrdnjBz8WQixsLYxzL26yS/nIDElIasD1ek9Ryds\r\naBJuZVR3jwY75ZTkPbl3HtrnRpRkNtudtKFLtOo6aZhIxzWxNCbfsHtITxJ5\r\nA0MfKhRFD/0YgMDnwGxKukOni2qntRQAyjU//Th1Vm4U8f7pBVEPsPZgRZNM\r\nb6+dhJRy06aRymDaQgV1e+eWYYc59tBGYRM=\r\n=hzG2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.70_1682292754498_0.9039952878937332"},"_hasShrinkwrap":false},"0.3.2-nightly.71":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.71","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^18.16.0","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.1","@typescript-eslint/parser":"^5.59.1","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.1","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.71](https://img.shields.io/badge/version-v0.3.2--nightly.71-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"a1d3b5629273e926dd456ffab1bb054cd1a8b1cc","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.71","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-WzwqeCRajeH2EtG3406Xbfh2QhhdmJajW9RYWOyxMbOJ72Gjdpxn6eM05QxUAwBI9mgGOCvq7mL826iTxNPx4g==","shasum":"b96798dfaf4805c98e0033a578f4fc82553eead9","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.71.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC01f1eCUmMdIOC9yljPZ/CMwqb63tlzEq4NQok1fB03AIga4W4eB+Dq8NHQan1tFpsVQiLm0Knvk/aI02jutyi2js="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRxGaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo+8hAAiwvyN/s/N8OdOmLuyNn1xPU3i+4VjGRovJU/ex+cWDNXW0RE\r\nh5fkGIGVG+nQeViuAA2pXE5bl9yz8ALQcIIdVEFK3nkSLgjeJmRcNDkBUJS8\r\nqG/IhsI52FYTi8qqwJTJWmCD7p1wFEDOgWzzbsrCUNPUJ4oVZ8IXJtDGc6rc\r\n3LsK7hceOhxsWEaBqFKG5PTAdQXUB733vpX6Km9s26zF2MXwjBUbLrBV93It\r\nqzyrkIWfzH6vSw9Tw8vgoZ4coFlvUaNwPjSwDOg5/KnCbWw34RiLU1l/A+ux\r\nq2aYWcjTu0bb9sD8pjPqfL+QZK+l8fFlZq11c06WdE0CDRgSZo0RYvRecPdF\r\nMZOCMzvV3zBUYNhYdYqu3FZcc6+KO7i1Idr3Mt6D9yoPY682By3y8NzuTXmq\r\nP8DRmHQPHJOPWbesi1v9IIcMtFWQH0PUD9QA6aFu1uIW+gDSdj73vmkOCV/2\r\nu8cPCDmJDpovj0iD//j7OoLMllyAosvTWYXwUauBlPb4ECg7MgTg9We4DKCQ\r\nOEXsKfGVGOEAe7DkmlRoB3x9I9XefjE+tzKZIF40mHK4Ic9g081RQiOAtv4U\r\nBgSnrSYErL+tGYuogaoesjYXlOysmaPIhuvQJqGSRyfAtscAiI6RgYiFM5xX\r\n8SfP6vdTbj2NkG+RoMmRXpMp/jp0m6E0rR4=\r\n=SgKP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.71_1682379162493_0.34351673168836805"},"_hasShrinkwrap":false},"0.3.2-nightly.72":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.72","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^18.16.1","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.1","@typescript-eslint/parser":"^5.59.1","all-contributors-cli":"^6.24.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.2","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.72](https://img.shields.io/badge/version-v0.3.2--nightly.72-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"d06e7a4ecc44063612f344d6724580ff27eaccbe","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.72","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-YLbW0P4BLYdiHYcS9/KR7tkF3B4y2DUVzE2y0gTawpWjZJO479Hn4o5bhjr9NAOgRJ5hIld10FalX1wHn+d2wg==","shasum":"2baadec25adfa05ca256fd8757ac311dcd72e560","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.72.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG+/+GzlB0isttPup0TcphTO7e5kbHaBLjEszd/EYkqoAiEA5NNcS+EY1nvj1jxw1OACJ7W842XgStQNT0quJBmd/l4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSGMKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpzZQ//b9e2CoeuE7uC+WvXZUo5SUC47mIpe/np0ux4fyAPJLCFT3bn\r\nyUSf2MQCe8UT36n1mdnex4EG7cRPJ6ibMwU7JKPhSYf6SamvK/en72J0Y7Ak\r\n53WFfewL4KCfFqehWxUZZ0R8bKW6WO7SYJsPraR/pxSKAUV3g2feeWMUAWOr\r\nnf0D1q5pjuuUne7iOl3XQKGaZvCs/ylUewD8QfJy30Vjun/5ujlO6IXuVkCL\r\nnvYKymbOth/phyUYzWbuTjGCd/+F4MgIgJzRZqsRrBsS+m2svgZDS4GO5s43\r\nWV5tVzQtSSz8ImMprXuHLHlfvnoFGwl7IMmpszTCTSzqOcJqgw/NqtQUSrdP\r\nZ2VB9C2fu7OYt0f2jftzRpA3vTbb4Cper61V98wK/WZ5lGhlpbesfQrlh8kX\r\nwObW/EyN1M0W01oJI03K/iTBbowjEbyRZD4Rvin0q+VLpvGKqEahRkAxBGSW\r\nabvc5rq0qpP0ClE7NDeUxLoLm2d8pf9MHmicY58AjrN+BLs3igESWKeG4Yfe\r\nGKy2rrv3ui68gP6wPYVo94bV8AF5lddeB1gb+8yr8LKKaI+d7FFoKBXAAvZc\r\ngzwJWlbiwNS8RVek6XJUFlyzkbaGuoLvnUin/YXWfxqB/oEzVDy/ftYMWZyU\r\n7t8Q0jHeBdCPIZJmrVts7wW8PuodvCllBNA=\r\n=c+Rl\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.72_1682465546452_0.7488871899987517"},"_hasShrinkwrap":false},"0.3.2-nightly.73":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.73","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^18.16.1","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.1","@typescript-eslint/parser":"^5.59.1","all-contributors-cli":"^6.25.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.3","yargs":"^17.7.1"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.73](https://img.shields.io/badge/version-v0.3.2--nightly.73-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"0c1b3fa6f9265a7887813e48dd0d6a8253dbd100","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.73","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-B+H3191cyX7Lb8VlZISvJSoFnDAP38G0g13i4EWQIzCWt4W7CcYaayvikwH1qHERkNpdrtlLL8mnTllrnUtO0g==","shasum":"6b7d037b17a77d9559995672ebbbc2106d6fa8c3","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.73.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJd8S0Ogy+u32Xf80tT3EoT0mpAL2iqr66p0SyS2oU7wIgH5DZQDVgpfoCJGir4qNON8mamBVwj8+o5ELY8qycBAQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSbSOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqcow//We6UnZBK1MIF90SOCh4ao+9VFmcLYdkKxhgv29gA4wbGmchw\r\n6YSuL5zZW6ECrqblbbCTyBsrFHLdRxpnZEVl7D78HjyHQ/fM8MXbAedziiT2\r\n7uD12Xgu+gSiG5sOsfBIcuvoSESN+fd+71Luwn9jvG+fxEDRx492MKRU0aH1\r\n1WlN1xuW3TEer4ABRCE5GCoWzNdqC8VsITmw2+e4SdarmKlVckWiV6NtHnex\r\nTgAR9bzYdaWuHolatAux/ayy8h5bv16qVGLKNH5K5CzQ1wPI0KnLqQ/P3AnT\r\nt38v0QMi6NPLy3nruvSb3ky3mM+yHNiD6kehzo8AHMpSSXpC0yUJNa6Myv/W\r\nv6qwKH5ZGfz9h3h0/Ir0z1QFdqshK/GiDiAnHhLAfB+WSlj6gbrTZZhnm6P2\r\nI68Yoxzsy//Qc8NQMQpULIcEjMdTaqVTNQ98mqLjCUosMj0GhwViLp6VZcsD\r\niUG9iNpW34RUyeAcE6ZhqppugZq8T6WKr0Q30evFPZjUaJXt1XKXE9WJStlG\r\nBRGReTfuzg8WDqTE72yInJIIwAq5lLVWtPDstYoMacpU2pl5Pv6I+fmM4FUV\r\nRJICyjmDl8rOZ6CSWUyEwBeZh3k+rZJMt/QR5VuTWRJvZqyvPYKPRb8SAmiy\r\n7L4mBaBXg5j0LnnR6S2lp9LAn0LQnV2aonY=\r\n=m7R5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.73_1682551950051_0.7479434384166992"},"_hasShrinkwrap":false},"0.3.2-nightly.74":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.74","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^18.16.2","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.1","@typescript-eslint/parser":"^5.59.1","all-contributors-cli":"^6.25.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.3","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.74](https://img.shields.io/badge/version-v0.3.2--nightly.74-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"6fde0d27cded59673c5b0a3c5e7e914d9ce0e76c","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.74","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-+ndMr+i037R/r2tJptYEBKz+AjtsSee9WWmQcfJKvIY3tInlUFfSzaP0FmCmeVTcgPdjh42cqywNUfbChcx08Q==","shasum":"68bc0b09e04c4650eb1af3087426872068ec7d34","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.74.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGEP733xyhlHmZqul6fs7EGbh8RMlsSN8Pq9YrpLAq+0AiByCQlJQISepIZ1xkDxyjDqmVbFk27LsaP6qJzKbF0Olw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSwYXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpRHQ/5AWKzEM5uM8Bx5ipupSi26HX+khM8LCw6Wgc1eGV1VEqyVUjM\r\nvQIJgKfnOlwVNziwls4urX2ANOVy2TPtwJUcGpxoCPPqQ/29COtSv3yjcjhA\r\n7lOy9ZogT+VKL88G2E7jwiX8UdbPTnSD3R8xlHrMo6tAES5cl45DVjJEd+ml\r\nxRMKRet8uudkpDCy3qJa6452dobfMhrSm0xpZxxYEV0KJfVgGn5txdcvy8HF\r\ncCvKTwIvFAgThFn3HssOqSkU4AcIcxHB/1l47N4VYolmhstosz9yd01qcncs\r\nhRVjYSdtESPM+oHf797a/F0VawtZlg6w/lL+grewyRKzi50ASI/HBvcAPCKJ\r\ntsN3nRR8CiK2jyxCAjApltlOAjAS9/YSBmPieLefy5tip+pTr1V8NX/mGeQm\r\nqL2n3Ttvn0fUbyJgttYATsNVuJUxUk6MhP3WlSdW/dVTsb9uakbKc42G+Xh6\r\nc0woRKYHjzGUBDdg3V5G683DpRbXTdQR/WmzPh3GTqRNZmMaQgwPo490e7nx\r\n+kWd19lFZeUhYNFkBJAEFKfZ4hwjavTPSZ4s3HDaH57AxxE/510h0Nai+qpm\r\nNLe7jD068+e+CQoe4lWxxMLySCkvoqTDMRMOseH3t/hFzCBBgsMHhRjXRIuP\r\nTPPG6IKI9NcoMrEttEuuPX4hE8ZShXAw96o=\r\n=Zm9W\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.74_1682638358851_0.3618750594647504"},"_hasShrinkwrap":false},"0.3.2-nightly.75":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.75","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^18.16.2","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.1","@typescript-eslint/parser":"^5.59.1","all-contributors-cli":"^6.25.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.3","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.75](https://img.shields.io/badge/version-v0.3.2--nightly.75-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"f04ece345d9dd659edae2bdbe104627e6f311f93","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.75","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-hfDLcFWgp8bJEKogZvrIY7ipE0qpBBsZRAWQpVX6YIe8ABoxuNImFbj7Vgnfei0rlQi5YbS9GUOecgqUGRjPDg==","shasum":"9ca827988c4d1aac98f2d795550d0bff12406793","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.75.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGhtHLnXo21LPFk2TCrhlS98geE7q//ZE9PEU1ni6VRjAiEAnyyCFfMKMLyNdF7fGhxWKah3jNptbuXyJgtPfx3L+do="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkTFeMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqwoA/+MNJNgW37mfMZFd09kRRhcv2EhbKP1AYYIe5XIDx0XysMiaN3\r\nIu4bkRN5HjaywB3E5x1giP1/a4dz4JlXqRMf8Jy6GGq08GuYbWkGvReTLI8N\r\nUY4NyYVN75A61TG3czB3NUX4PGKFZMMpf/PA9pxm0jWnPBTJeXs9i6/83457\r\neB8+DGTqsJbQqJMJ2XXhNqC3Ja6n4Dxb9NcakPNc/egEXRBLJaKNitQvwouX\r\nIr5JepEy21IQzHwjCbtElKuVVSisCHI+X5NfwlMUu6JUMsuapgCH9yUWp0dW\r\n1Kzwoy1dqAsaLw5wbRM1HglnuNuZMJUbHvWgdR2wXWclx97IMypZ6ZyTds49\r\nKJMvEPJYHrFidpCNJyda5yucC2uehfmI15lb8uwslU7khoGGCCzEkwj9cIyP\r\n4VbxVbJF3/I00sb40g6mbVNfce0+GXNMzUslCtqIHKe09I+5pyKbahdtRd+M\r\n9MDpAiIrlh5DeDjcCKfps2KVPhIa+GwsM3TtDpTP7+peIsz6+fSXx2ahGSf1\r\nkpL7Obobfilgzv4kqjCZPx8uyJnCadVo17bsIrjLBUBYE0LTgYFyyjbpv2Zm\r\npsQQSQXN2kcqF6zCs6hnTfsgykLcPRbUjhr8b2JLxqfTtSywmT9wDEVPDtMC\r\niZqMUAyXHQhTnlj8ESikrbKISBYcaxqrb/s=\r\n=RC17\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.75_1682724748720_0.08277261928982904"},"_hasShrinkwrap":false},"0.3.2-nightly.76":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.76","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^18.16.3","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.1","@typescript-eslint/parser":"^5.59.1","all-contributors-cli":"^6.25.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.3","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.76](https://img.shields.io/badge/version-v0.3.2--nightly.76-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"fb64ee21348a9341d0f8cd853f1ba2173a6ad0d9","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.76","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-SgWhjtZfDwuClPj86J+xgihr8fTjSijABby0No8Mi6W97nWy1y9Q+Tgv8EYFzcDBgSsGSxbn4jsIRH1vvzr2Hg==","shasum":"11ddcde25569c0f91fffa8be0e41cb348f618c78","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.76.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC9n0tmsgs1OSqQz9E++gA65UU2sc9T8XhVQgcBnFZGcAIgDIjm11ofS1Ysid/mtwPUmMUw0zULwwNfeKwsXsyQ+9Y="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkTakRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqerw/+J8p9lIizQYPM7unorrrzwHZf4sMBR315JDf/LI1mewAKLLcH\r\nJrlSIapU2Vrm440rKWwNnvfwI1cisdaEeHbV14muSXQCHNVhuHU1qN0u65n0\r\nN4NCLb9m3STEkzqMP4DsSlPUiSwZhS5jRxz8goYXQ4XasFNj5N5NyrKj5uzh\r\nh/PaHEqwOlEh9g6VIyhbA0auY9e9i6MxJPRiAW/y4a2q6/u3LxG+AtyWSAYV\r\nHw0esmxf1HC3PO3Vww3exmEUajBR9u+OPUNH02oR7PYXFiL0UM++o58AgeFm\r\n5Zf4lvcY5F+690/6G8kwG3D3OONjMFaqfF3NdN/5Ut42Vxd0C/FPcnOpSTA8\r\njrAYzZRSZY9B40ohLtr1bJbF0fytxGwLZsPr85ynxoWyJewb31umaeGiz2cm\r\nviHbbn3e4iEJ6+Fmk3MoZjltfzoamyYZ4+TQ1ecxId62qP9mGMv8Lw6zja9d\r\nCeUKEbOCjvMBnIwwFN7vf6HLOrT9XD0Tww8IDB43V3POHZOUu4ZgkLR14PhI\r\n0gpuoNfklb8oORxHnHyTrog26iFyC/yq1p4nzuRTo7/iXao7FdFWLlwIYXex\r\nRqseX1jO0VYkMHFyvJfh+kLz4ZxIdMgsy5jEt0lOwTqDGUpPmahgA3sHqUXX\r\nsmyKXP3Av5IZ1LACgKdT5uj6s3X5v1gYg44=\r\n=n1fz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.76_1682811153286_0.8602068721044436"},"_hasShrinkwrap":false},"0.3.2-nightly.77":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.77","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^18.16.3","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.1","@typescript-eslint/parser":"^5.59.1","all-contributors-cli":"^6.25.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.3","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.77](https://img.shields.io/badge/version-v0.3.2--nightly.77-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"7ab7d1080bb60752857049ea69688437e497e528","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.77","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-VEOUpwuy6J4Oap+jd4vaUo02Sz2Joz2VwpB8XfCfEVURZnG5uLUJCl7zBz8CT6ZiqtRjJWiDIyFBhvxE9LO7gQ==","shasum":"ac81770c08e3ec7baeab1d5048d071da5f096b03","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.77.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFUrusM83D0e+FTJBBy7Hx/Oj0u3+Rp2ZxKmiXg0QO5+AiEAy3GkBFZDv5WApwqMhoD+553XWp9S23OuFHuXKGvdoWE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkTvqMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpz+A//cqBQDw4j9RCL5rvsoXcb6/4PMjEWSi2bUpLlS3d5a8mj/Uon\r\niUV51/T0dclU5ftcKBOSizGe/iBs8uqqs39Oa2Q0AfYcdvwdpf6vcFpQ3Lsa\r\nIIpYpuTIeJq4QVdEsrcAqX5ZqdSH53bWFyuNWDZtUNcRbrLFRiscxCooiVzY\r\nvqe7GG8UX29RR6VxImmpRxKAyaoQknqXXV/7g7+rLE0BB+8rQRaw8kxnAUqP\r\nag1ZIjYNEYMYaQiO+smxBu1VdC+RpKwJTVa2YqJJr+JpmDNDwHlTaYGgwMYW\r\nCXEif3qa7Hx5Kw48S+S5Sc/kpuDnAKamFk1nYCtOS9cvkCfKonKtgNbTVS1A\r\nAASyTmAkopqgHxRGFjfc5DbpGhEtz1fAn/KFFlYRgfj9D1XixkXQK/G9fxh/\r\nGeNXuND6osLyo7aDuro5XxWVI2YymuTiOdUvbJxOa23s4c1hFM6XFl+GvqyQ\r\n66ijiiQ/q5z32H8SMoaNeErr/YiVnG38YsmXt76ATeNLPGdIHWaLWFApA2se\r\nRCnHTaKvlBl4Hj49NEwsoX97xnJ/fCDBMv0vS4qzcPOZF9Dqvl7NlDHc6tRF\r\nHObvG4rxvT5+rsWuiFY5gWFXLeOEpPi2CaVCt67dra31stTscDn3M2Ofro9m\r\n+ed+qBTgLJEBGKLVawvg4Y47HO5PmDO5vEA=\r\n=5sVk\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.77_1682897547969_0.8347039184493628"},"_hasShrinkwrap":false},"0.3.2-nightly.78":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.78","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^18.16.3","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","all-contributors-cli":"^6.25.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.4","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.78](https://img.shields.io/badge/version-v0.3.2--nightly.78-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"fb945fd7d5cfebefb4d6cf4dea0482c5c136c01b","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.78","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-2UBpexdyM9RTssNP9uZs+OHrI3X87kihDprDK4op92eSWG/mIwlUM7LFaRABa+x3NzRZzbJwVxc6uwa4K439CQ==","shasum":"14af0e9e7bb5b665d88dc80e4645e4e4c106f86d","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.78.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMES9CMoWM0cFpP5ZAybSidQ0VwATaHuwVnbP54UqF+AIgXuCzmCtq4vLLBgrlFtgBvaSXTwKDFER/g3Me2Wey0wM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUZ2TACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpAURAAoSRrqgwOw1zAGJ19Z1bbLx1TdLYr0DW3iP4bE6s82ffWYfBb\r\nUGJD2JcPDHl1z8MXAb7GxnSkJDi2IL1dBfY99+WIl/nhFOHhN+zGHhfi5CDU\r\npArCMF/jp8jXbYU86Utks4kCIY64qw6jQR6saR2vj5fX/CHxjJtyOZHVzvit\r\nEpSE6zQJ88wpNG3bBa4cBgQ2dsLm4bC8mSQAZ3ehnCGHqbrPfGsa1tfup9Ne\r\nKgFGOv7hK83K5nX21aJLdRMzsp2aGtf1zcxfxxUDCH1p39rqZ8IrW6061mWk\r\njPNWaLJVgBTSuRlRlYuTE5EjuJjaGqQZZ+aoLvBH4KMRczfRjTOJqvkNospm\r\nY5lm00IE1SgaMRz6YW6OKyyKhj8m644VH1fG3ypzOvbjGHLsH4wRBYiytWEg\r\nRbfD+xuhWqev8thdJLEBXW6FDZKoHxfXvuDI1Hpuv6MECTJP7v5LdO03vCo1\r\nHWh3/opBUeCBUeY52PIhE0K0ivxdu7XQonyB0tUTK0UegtT3Nq7gDrjRyIsx\r\n/D3gLCp/kFzBNUlkFwYSWC/xq/RQzl9XkqCodVu/QKyvJ8Qtxp5c5+KKzsEk\r\nL4ZzlgTYGfKHUU6lrLpu85laWvushddwEG8ce+/ZQN+KnYa96+NaciV9ykJH\r\nozIdjuMV/KriYFR/EQ+ROkB1bX8BJZjXAqA=\r\n=HnVC\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.78_1683070354955_0.1424914661800467"},"_hasShrinkwrap":false},"0.3.2-nightly.79":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.79","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^18.16.3","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","all-contributors-cli":"^6.25.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.4","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.79](https://img.shields.io/badge/version-v0.3.2--nightly.79-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"b155bb2af2bf9ec90cfaf58b1e168d8a006d883d","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.79","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-8OolSSroAEQn5at2ZGkZk/+gEd+CNw3VHg9UVGXE2/ev4aIcG+aY5SzUgQcCvFYRgRqxbIrGNAKDROQ5TEf1kw==","shasum":"0e509dc34ffad4e36c47368bb67eb83295647711","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.79.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDX6NVRnR2I6Wj0YVUNp0PO5zjOMUzP9iTnph1iWbPIdwIhAKIx2Kobnt79kCZf7BB6E58PWHOpfT7GtWCbDFKEtlGS"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUu8TACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr0Kw/9HItoj6i1AKWTAw3Rrs1AkXxVSlftZ62hqai64oGVjvsdl5b5\r\nvisnb3hTYNJ3+toFD6e19fbg5Hh5oKC4PToakB/WRyYWp6+bsJNRSRKPhooD\r\n7TYB31TZOrVYu+2QTo/gPsCihrzqNsySupHa1E8hGd8+egjj7xDim3C/JiHK\r\nwezXn/h/PHa6AWIcw1o3SbKIb7tf/ObkK1PqVPx1y9n7RLEsuD7r2/9mUiEV\r\n2XZVSdhAcMBhenQ5e5hwVtF+Zaa1a7fXuPCjovrQEPLc2gjI6uwOpJjUdm67\r\nFJI0T1ny4rY8dzTuN889au8Kt7AyMOA+sS2tsWsfiwmtjyD6LWQXIB/xeYho\r\nrDwVbAPohkZrzPdu1THwkg1GXCZT0KW2iBO6Fq68RRiwaN1QnN7rnf7jeE/Y\r\nlMW1OlsiPl6Yq+NeuhEASL4OUzc1dFYIaWtMZyZyPgfPAqnUv/aMq9HCqYuA\r\njM6fjDDN4CadccAGKKDo5SRfXdN93D/cqbjKoNCN0zdHUJc8jI+jKaR5tSj4\r\nd6mhUzAZs9KHl02/BnDoG5vmqvJ/azGxngwhMmIOO2C6HfdcdVLgEdTDnaKe\r\neF+ZwcHplLMqZsswFFR9+dI3FvV43P3RRNwjWLQZJBjb1jUoKHwXJZhuAGod\r\nZ+YIzUuDqrjiu0a+C50rFSgpC5OFMrVlAs4=\r\n=8XoO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.79_1683156755185_0.5258726512684833"},"_hasShrinkwrap":false},"0.3.2-nightly.80":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.80","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^18.16.3","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","all-contributors-cli":"^6.25.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.1.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.58.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.4","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.80](https://img.shields.io/badge/version-v0.3.2--nightly.80-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"10b12e0ecf153e3a4ba81974a9bdd1875dcc4ac9","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.80","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-tj2CMSk9QtRO+yi7k55LRwMZd2ZPaHjV98F6VkxoRv7YAJkrUFbCzgLBAvhrwFhVIj5LQePsPoWgqkK/AXnQ8w==","shasum":"c611ec0b93c5cad076524ea5407b30111bbb476d","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.80.tgz","fileCount":8,"unpackedSize":35580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAJ3sp+6vuTqrJsP29pgEMBga7M3q+f3afY6yXw18TB8AiEAhw9ZvTi4k1nQCboCy27gquC0Xiwtva+BN0861/USlYY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkVECZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoX7g/9ETu7+/d6SWSwo9rYPInRWY6I79M37cKWunWV+Kaec/Te8mVW\r\n6KGmNB1OuVEbTGz03TD04U1whDTRk/HH27i0xyo2l3YA+CP6obRDkm4KTWgH\r\nkPkU5MblquHXFIPFmMxI9tMAfgszOmV/eU2g+R/rq54mvrS6ona4W52o5a8G\r\nUMzUzC728R9cwzsg8gLOwkmJbK2T+SDPrCWtBXHfN/MuPwPrmRDQ3JN2gXQ6\r\ns5nbD4bUxtFTXm2NA7nVwbfZmOuU7/WRSo9ZC9C/nJ+8t0991BB9+gUqpC4n\r\ntl7bDazRlucoYls7UDqUsiLGANMgfdQrZIgVadsvbFnHgGRXHUIuudQF1cbK\r\nhzne07o7CMii1qJm7Ky5wmRwgKxsqUsSqFAArVw/1pzh/TiBQoEqJD+JkxDu\r\nuJUMrhSvY2zR9gyk82RbkYyyGXB0FaZasRvsMualrfnSv75WdGIJKtBziP41\r\nA9gezDWFYZ0p96PbjwIo4SnS9pqs0nVmMZlKpBtNY7r9iwQQ0iZ2VxMrrrBR\r\nwhAzcu6AYIGzeBzWWugGgM4g7KXufwirONEAUAkQxvv5vAENsHI4A+FmFBLd\r\niabAzZgtyNPPLldJhvubeFL8swSjHayxlgXD20LJY3kQZxpmmNAOnbMAKwL4\r\nX6DBG0jju8gZC7ZCbK0oqx9m5xJa68+Qj/k=\r\n=rZjT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.80_1683243161774_0.09826052173544375"},"_hasShrinkwrap":false},"0.3.2-nightly.81":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.81","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.1.0","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","all-contributors-cli":"^6.25.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.2.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.5","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.81](https://img.shields.io/badge/version-v0.3.2--nightly.81-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"a37b53d7b369d934028ba0f3eff39e5518f7b7b4","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.81","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-JDxcrJ1lLE+2Lg0GFOEFjX5darF0ncCh41d83wcDpNUPbPzSZQz/UpkF+pmVozq9sEfD6Vq5CvjZckKffrQrVw==","shasum":"a0d6b345fa662dac3ef28286c921360a0415955c","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.81.tgz","fileCount":8,"unpackedSize":35579,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDkMgSNjwwH4wELy/9wsd6qNqhSDAnC8vd7wSWI/Z4VXAiEAgu0g9LpfXB3Bj8WzWETD2jdX2QK9czXGXgvdNv3wxQY="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.81_1683329552133_0.4767027305716831"},"_hasShrinkwrap":false},"0.3.2-nightly.82":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.82","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.1.0","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","all-contributors-cli":"^6.25.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^43.2.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.5","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.82](https://img.shields.io/badge/version-v0.3.2--nightly.82-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"8d568de81ceef73588b528ccbe9792a6d4673e07","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.82","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-YX+SqrZpc6CXbSGoZHLoFubFJNPyoQsnc/gMjUsBQGBetXD+UZD0DPoPhCBDK1xD9bcU1ccKukOk1QjOsyq3iw==","shasum":"89f6acfc13a05e088b6b544c4e16dba7d92730f2","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.82.tgz","fileCount":8,"unpackedSize":35579,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHe+yrmFZwLBk8yPhJ/Z6tzEoesFPFenD2nGSQ4C8wn1AiBlHAWtHOy77ts9Lvt1PsjI5OOzaTEaC1Jx5PvBrp4MfQ=="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.82_1683415961914_0.7912830361777416"},"_hasShrinkwrap":false},"0.3.2-nightly.83":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.83","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.1.0","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","all-contributors-cli":"^6.25.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.0.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.0","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.5","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.83](https://img.shields.io/badge/version-v0.3.2--nightly.83-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"95f526c0700ab97c2345bce203b02533f528b9d9","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.83","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-+u409YcgZ9WDJrXmITLZsulY9/IbO+hs1lDS2cLnLTUdrXF8gvHfrq/k8z2mBJoW8qHVoRMTVDN7BkdLTaBHFQ==","shasum":"0bf94f324ac04788e488dc7adc82999cec9713bd","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.83.tgz","fileCount":8,"unpackedSize":35579,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDvhbojFH4o7GuvWL5lvi9ST64doLuD9lDG6mSdFGu3rAiEA/1bNf2O5y9+r77BbPSRyF89L0KzqC08QCC7c7MHOPl0="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.83_1683502360281_0.002008110172869948"},"_hasShrinkwrap":false},"0.3.2-nightly.84":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.84","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.1.1","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.5","all-contributors-cli":"^6.25.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.0.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.5","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.84](https://img.shields.io/badge/version-v0.3.2--nightly.84-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"79f4558ce1eecac8bc465c3b3a56e62a2e618768","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.84","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-xuW5/ld5vnBR+yd8vDyHqAItCcjPIaYjLFLpFOrw8rbEakyC1OToNBMRcecm45U1+LVbema0NJlp1ZyEzowzHg==","shasum":"246f707e8d25d3f67be99d966ac2c4accbc5baf7","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.84.tgz","fileCount":8,"unpackedSize":35579,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGO+40LGW31B0iK+V1n6stLCQYs7WeW1PhPfguflXqThAiEA8NqhDIoLJ0ZrvhcszqQDoJMuLi38NPT5d8U02gC2T/0="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.84_1683588763338_0.9956097192586204"},"_hasShrinkwrap":false},"0.3.2-nightly.85":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.85","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.1.1","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.5","all-contributors-cli":"^6.25.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.1.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.5","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.85](https://img.shields.io/badge/version-v0.3.2--nightly.85-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"66d5dd5d080d17b702bc526592d68ca53fc9398f","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.85","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-rLds5ic572jYQrekimlBX1bADBR6BN4uuTqk3wuwcEVzusGX5dZKhJn5EPUhrl1kMMAiVnZj0M0mwu3ancsfAQ==","shasum":"ce56b42fe90f2a225e9790da47cec43868a4b403","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.85.tgz","fileCount":8,"unpackedSize":35579,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3GllGJjoi6DVw1CvAgkpZ4ipwXl7kSlAikM1O/lKVnwIhAL06DBViurFIl52oL8dIW37Xyu3XWQzplT8ae/jtZj0p"}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.85_1683675150819_0.6031410396741328"},"_hasShrinkwrap":false},"0.3.2-nightly.86":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.86","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.1.2","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.5","all-contributors-cli":"^6.25.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.2","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.5","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.86](https://img.shields.io/badge/version-v0.3.2--nightly.86-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"67521e7898345fd59a77dc2dc589de4950917405","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.86","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-MHqK+VsOZQdr7wzl7IQ1rKr4u5IhDnptIKBmtyY38v27rFk0lm13WqFGgMBOQcs2G9IxQmnxE7VNWWcbWJX7QQ==","shasum":"7b9835d30938cfe1ef8ee21ec77ce44a731def5d","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.86.tgz","fileCount":8,"unpackedSize":35579,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmoopj26Lzcpey/mBIqLCnopdKiJITOfkZpzsg0S3VXAIhAOohroalwwINygpoBGDHBjKFESwz+E/fMMtmKc4XOQC2"}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.86_1683761554631_0.1855773879992244"},"_hasShrinkwrap":false},"0.3.2-nightly.87":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.87","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.1.3","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.5","all-contributors-cli":"^6.25.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.3","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.5","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.87](https://img.shields.io/badge/version-v0.3.2--nightly.87-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"eeeca1f0d690f992447b996a3c65cc58782c54bc","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.87","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-ml/nKYDOpTa9XLKsfl+5n8XmrWAbZcNDXV5um9Z2BqEtjQNkwTZHFkz2D6WAMd0BDEo65P+qxSsaobpMLb36PA==","shasum":"a075c15374e4c094ccb4308dc069af4fa8cc351d","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.87.tgz","fileCount":8,"unpackedSize":35579,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHHgj56sRFwwPbtdneFWDu/RkyrSoJKLowodfjA4Es2YAiEAor7sgDH5AHdO7d/Jj6wgMr3igl8Mq20xfs3V9LIJmSk="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.87_1683847962290_0.8711481706831878"},"_hasShrinkwrap":false},"0.3.2-nightly.88":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.88","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.1.3","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.5","all-contributors-cli":"^6.25.1","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.3","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.5","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.88](https://img.shields.io/badge/version-v0.3.2--nightly.88-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"5ff2d0e0a40c9f7a0d149a28b40455423bb3a4a3","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.88","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-rVHZomIYPcLHx+5NXjGvzsIvJTLqEVQniOge5MA9MbTmCU/XgIQM2DjEh/sSd2kNrORUPRVyN2ojQx5NIKiDNA==","shasum":"420035c697fa080439904f7185f1105e50d6329d","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.88.tgz","fileCount":8,"unpackedSize":35579,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEMP0upPDNO24hLlzGfVKrYKzIEirYMDTfa6rY2NwAxhAiBJ/MourMKeHkGBOHzN6Hj+PRmGKa1/QxzyS9MEUbjDoA=="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.88_1683934373162_0.884292569785412"},"_hasShrinkwrap":false},"0.3.2-nightly.89":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.89","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.1.4","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.5","all-contributors-cli":"^6.25.1","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.3","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.5","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.89](https://img.shields.io/badge/version-v0.3.2--nightly.89-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"d0ef045699b1ede88a0a201463ff8f6e577620c3","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.89","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-waRJjOxaquAvIH/sZzoj5Y6bSBKNOxi5j+moeOK/Z1OgV196XCAd0o1uC9RsBQL5XnN7xxrldOuhuIMpNSfcBA==","shasum":"be11ebfc36547c18dc00c15b16c62e56eba2470f","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.89.tgz","fileCount":8,"unpackedSize":35579,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICTsb1nzymvu9XSNBlcs6J4NEDGafopQlIwJCLTUj7nHAiEA9n6tv1kX02CxZQADmC7dOhatQpPHXhuZ7hjleWhVMjQ="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.89_1684020755902_0.20048319366833867"},"_hasShrinkwrap":false},"0.3.2-nightly.90":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.90","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.1.4","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.5","all-contributors-cli":"^6.25.1","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.3","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.5","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.90](https://img.shields.io/badge/version-v0.3.2--nightly.90-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"044200b4bfef324ca749c098cf36057a939b38bb","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.90","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-WDtHhK8aBi8gC3rsaoLd6D0EQn/rBSY2i//u7l5TnP7ClmYiHasSIF5LmsQ3xz1M79rc2ntcojZlhh/B91S4LQ==","shasum":"3dbf8b754edc7bf4c6312052b5cb0d6915350270","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.90.tgz","fileCount":8,"unpackedSize":35579,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDaiRu/YrpgGuVMJI6HgoePGDR48btBIjEOm2Rm6AxkKwIgOUP6LwNaj8SxE9ej/zuf9GHmLfRQBD4044lVq59FzSY="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.90_1684107160018_0.5991899271244223"},"_hasShrinkwrap":false},"0.3.2-nightly.91":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.91","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.1.4","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.6","@typescript-eslint/parser":"^5.59.6","all-contributors-cli":"^6.25.1","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.4","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.6","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.91](https://img.shields.io/badge/version-v0.3.2--nightly.91-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"cb8d908a55a0aa5eb5475dd9ed6a56f363888ec8","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.91","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-ytTNbma3RwtpouUf3mpE32RWnk8xZgX5PRafT6vZTLDgUPAhkhf1E5NJpXakx79GC508RyDE1gTEgCIm5zdiMA==","shasum":"7048e47ee32a7534ad32cb47533cbf9b97ba829f","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.91.tgz","fileCount":8,"unpackedSize":35579,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKJ1JjynuLTbRlrFxG/5QeWp31FhrFc9QqVxm7TohLyAIgHkyePW0gKiWPi/4SSMOmLjShMo+lo/Cl65uhtr8+6r4="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.91_1684193548961_0.4553740465422713"},"_hasShrinkwrap":false},"0.3.2-nightly.92":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.92","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.1.7","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.6","@typescript-eslint/parser":"^5.59.6","all-contributors-cli":"^6.25.1","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.4","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.7","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.92](https://img.shields.io/badge/version-v0.3.2--nightly.92-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"e8d0cd69438297bea0193fa86274f1cc49967466","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.92","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-BAysMDbOymZGXGlWPqLULAGuReMXOISl7h70m/dF04IHfUoTKTMgpKYHFgjmuPfC9/Rst3jcpFzF+oqb0VvFhA==","shasum":"dda1f2b5d5dc2e68c64acbe9d2e1528624e8ddb8","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.92.tgz","fileCount":8,"unpackedSize":35579,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCdO+n/c3DQJCmJ5/yu1c/TqMSdGcVPjM/5+3L1FHtZkgIhAJyK/s5GDPWABP2VxdLAGXtWLE1DJIW8t2r6ONW0jMrB"}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.92_1684279969671_0.23655550346503373"},"_hasShrinkwrap":false},"0.3.2-nightly.93":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.93","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.1.7","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.6","@typescript-eslint/parser":"^5.59.6","all-contributors-cli":"^6.25.1","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.4","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.7","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.93](https://img.shields.io/badge/version-v0.3.2--nightly.93-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"407326633c7128d910656ff391f4df14d97003d2","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.93","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-H8HqW6C3L5ZIlP1um5ZN9f1EMbO5p9L/lbWki73GivaAx32Ps2ACdyu0oT190PYoKANtoW5uC3VHHZAjibitXA==","shasum":"d769c8595ab4017b40c90b108adc37b7becbbe64","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.93.tgz","fileCount":8,"unpackedSize":35579,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCg1WSSE/Hl0VkhfuVNb//JqSBcsk6g1Fk++eoWxuBMVgIhALB9Xcl02Suu7RUraQUfxQo2Yxh82vpOcJVx4LJ9dvv2"}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.93_1684366366985_0.34070497266284594"},"_hasShrinkwrap":false},"0.3.2-nightly.94":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.94","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.2.1","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.6","@typescript-eslint/parser":"^5.59.6","all-contributors-cli":"^6.25.1","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.4","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.8","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.94](https://img.shields.io/badge/version-v0.3.2--nightly.94-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"445cb05d8527ee78436c14204d146e101c5afd9e","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.94","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-jc7OKrkI8Ww0+LlllwbsNMwgSp6aj1WM7GZqve8uae87itLFTIzovOs8W9qJI5fwVITDrznKFjXrTgxNPKla0Q==","shasum":"ab20bc4d18c6164906becb72ece94a4c43692420","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.94.tgz","fileCount":8,"unpackedSize":35579,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBcYkJJrdJKz1Kksctv22hivqiB0mIvtYA14G8ilWhfPAiEA4bl61t89brJlco4qgee/d5nr/h+JH6vPlvZDk4N298E="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.94_1684452757848_0.06335576792570974"},"_hasShrinkwrap":false},"0.3.2-nightly.95":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.95","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.2.1","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.6","@typescript-eslint/parser":"^5.59.6","all-contributors-cli":"^6.25.1","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.4","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.8","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.95](https://img.shields.io/badge/version-v0.3.2--nightly.95-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"5d8f3b118a81a5bbb990056dc1ee249f6f252fc8","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.95","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-P/ZJoe72TqUXnb0COmi/Li8gdUkqXXUV/7lo6iwQnfd1pvXHEleHo8zNhJ7zjUy/2ht62xxIaVB1knStn+DgnA==","shasum":"118fcb94c7f9e50180de4460e3e032dce033ad12","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.95.tgz","fileCount":8,"unpackedSize":35579,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEpQrklvIo7nBnuA0H964we4Jopts+zhsA6JfiWdjGUDAiBUY3XfT8pCVO4NZvGcVAIB3a4H4WM5sRHB3vqE+5Vrzg=="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.95_1684539146552_0.21738569616452486"},"_hasShrinkwrap":false},"0.3.2-nightly.96":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.96","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.2.1","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.6","@typescript-eslint/parser":"^5.59.6","all-contributors-cli":"^6.25.1","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.4","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.8","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.96](https://img.shields.io/badge/version-v0.3.2--nightly.96-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"c653f9be180376a793186a2852d24551d2ccb3ba","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.96","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-GXcfIy1QJz/ybPI2NL6zcdLB8lUP2kM4FFeol9LCv1/iBqSlg0hwag92IOpigZJoW6MYJYTiiyxDDcZAR5hYqQ==","shasum":"4ec6f63b9b8ad5a2cfb32522f9bc68cb01fb4dd5","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.96.tgz","fileCount":8,"unpackedSize":35579,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE/dAbofX4MNaVfntaN5vN8NNQ/I/1wAgMJg896+VofkAiEAmfE+InqcPVLByZ4eNHkgxCXEhn6ozTAmOBCVuwrhO68="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.96_1684625561715_0.9933158935394522"},"_hasShrinkwrap":false},"0.3.2-nightly.97":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.97","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.2.3","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.6","@typescript-eslint/parser":"^5.59.6","all-contributors-cli":"^6.25.1","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.4","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.8","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.97](https://img.shields.io/badge/version-v0.3.2--nightly.97-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"497a3ce8aa1f91e8603211e89f831089a5b19ebc","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.97","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-gSCANIt6JEYeV9ewGXlfvoF3Hui11Be5ZH9Xytdl2DZmaGTw2cdHzkHf35ZCgMqOkwOhohzRk9d8Rm5CS9/Iww==","shasum":"ab4a5f478ce5edccae2440542bc07f86caf8f905","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.97.tgz","fileCount":8,"unpackedSize":35579,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBahRB618kvtPq1C7qhYIv8BpSrWkvGgaMf41fv3K+pfAiEA9gFAnT5JtSIfdVltsvMjYzhK52iw3C6QUlcbs5EhfO0="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.97_1684711947137_0.050164101149506646"},"_hasShrinkwrap":false},"0.3.2-nightly.98":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.98","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.2.3","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.7","@typescript-eslint/parser":"^5.59.7","all-contributors-cli":"^6.25.1","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.4","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.8","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.98](https://img.shields.io/badge/version-v0.3.2--nightly.98-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"54a053097f0871bb14670c2987dafffcce6bc4a6","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.98","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Q6aEizaskqcrh06DaWxvOxB1f1cKfqZnv+K4/4CsN4XTuBKM+a4IT4oQ4PNuikj4gb4dlCbJ0K3z7a1f27TbyQ==","shasum":"638bceac4564b472e8fb48a1c50fdcaffb497ccc","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.98.tgz","fileCount":8,"unpackedSize":35579,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKA9GRDT8WUu3eDpBZ6XSwKfp8Qr5nfAY8sXGGdA9S+gIhAO2fZyevPRox+7qr5s/kaD1g/n6mzSVUnYky02HBzils"}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.98_1684798344584_0.9323272115589678"},"_hasShrinkwrap":false},"0.3.2-nightly.99":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.99","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.2.3","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.7","@typescript-eslint/parser":"^5.59.7","all-contributors-cli":"^6.25.1","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.5","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.8","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.99](https://img.shields.io/badge/version-v0.3.2--nightly.99-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"1234370f8f4f8a5e1bdd13855e58f66f40f0e3df","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.99","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-xnj0S8dvL2fWfrxjOSJq5cezya0MlmU9iF3YHABBfukjI4k60MXM6LKK1hfE8ZqmGwy0K6Z8O2OsHB5S/V85xQ==","shasum":"f6eb3a47a6a631817cdb749d7c1c49e30b6de8a7","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.99.tgz","fileCount":8,"unpackedSize":35579,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGn8tW0VEKvWaSWhtc+MDOZtmC6QhYmpXQzIlIG0ZPqkAiEAshHV24AADYjKV4opsVpLtEKeWhqpXRycJYzeb9HOCDQ="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.99_1684884746356_0.29013806145934495"},"_hasShrinkwrap":false},"0.3.2-nightly.100":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.100","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.2.3","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.7","@typescript-eslint/parser":"^5.59.7","all-contributors-cli":"^6.25.1","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.5","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.8","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.100](https://img.shields.io/badge/version-v0.3.2--nightly.100-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"1356210626e1846df362d2f106eeba51da52d74e","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.100","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-9mMG/0+ep0d1SwufVgINEiTEIIt7kifxh0en2+Ztr7YDdBA93ghoTLbM6ZGi5IW360FlFGA3MigSB7UJWWmiLA==","shasum":"aae00d2a7cc0d84fd4b4ef1602f44103887020f3","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.100.tgz","fileCount":8,"unpackedSize":35582,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBzZVFEFpvhPNxC6CQlCG6wDpFs8qCYR8xET9Yx7btCsAiAK33nfZSuNgL640VnhjwdLz6wsexyQaJ86iUx/a1L2uA=="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.100_1684971166241_0.9903943360457423"},"_hasShrinkwrap":false},"0.3.2-nightly.101":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.101","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.2.4","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.7","@typescript-eslint/parser":"^5.59.7","all-contributors-cli":"^6.25.1","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.5","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.8","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.101](https://img.shields.io/badge/version-v0.3.2--nightly.101-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"38e7ae4f3fd0566c267b41e471d00bdaea30e083","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.101","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-z+q7fw+SEtj00nYZwNLewHuF6kIWId+84E2NgHItAf8qQ6enLMLV7qbQgVG35MJE2ZeoZa+cXqm+rcZnEWryYg==","shasum":"fe5daf416a4149856236b1f1f196d7041b63e2d0","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.101.tgz","fileCount":8,"unpackedSize":35582,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDJImzY7AUxXxybasz8pEBni33PGjV6TYchBK45Dor0QAiEAzigY+3mlfmYfsaT5lz4zdfyPsVxMLth3LPSDAnjY3F4="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.101_1685057562986_0.41700196565914616"},"_hasShrinkwrap":false},"0.3.2-nightly.102":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.102","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.2.5","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.7","@typescript-eslint/parser":"^5.59.7","all-contributors-cli":"^6.25.1","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.7","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.102](https://img.shields.io/badge/version-v0.3.2--nightly.102-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"310a75d40682c6abf3334915281144ca3949664e","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.102","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-1MCqkOlRj/2VqzBYKnCeF6AhbJ8qt/GHglfke2vQ77xb+vY7FReEvmI5LrERfjAFanXZaPK1Oiybjw3YQLO7WA==","shasum":"bbaf0be9fe88775985073bf38e16709a58230d6b","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.102.tgz","fileCount":8,"unpackedSize":35582,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA/7c2FLu96it7ehXdfkRjKJsMfSpOeLulQbkLK5S8hSAiAKhNk3ZAJIbKDLW2JEKx8thV0x/GCKTLJMbNSKPBtACA=="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.102_1685143955473_0.23407673649211524"},"_hasShrinkwrap":false},"0.3.2-nightly.103":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.103","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^6.3.5","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.2.5","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.7","@typescript-eslint/parser":"^5.59.7","all-contributors-cli":"^6.25.1","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^44.2.7","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.103](https://img.shields.io/badge/version-v0.3.2--nightly.103-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"7446b4487cd4e08b4e591483952fdd07457858d8","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.103","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-rE3FIB2Up7wMt4Qo9ts1uAjdducezOwqYAQG3tl1ihUw7+cYtI9WU8rwTp48nxYHmrXQq8VEN4ZlUxHfOPwwcg==","shasum":"7beb5df0710b67990a2a1a8cae77bd1f42136738","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.103.tgz","fileCount":8,"unpackedSize":35582,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIErVNKcMmE6jm8sIlvmxjgZaN8elr+9ovRYOAD/HFA9oAiEApaDD/kbI/jPnekckPcaL7aQhf/ak4whtPy2BsEX2tG0="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.103_1685230368674_0.9417419070327986"},"_hasShrinkwrap":false},"0.3.2-nightly.104":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.104","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.2.5","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.7","@typescript-eslint/parser":"^5.59.7","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^45.0.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.104](https://img.shields.io/badge/version-v0.3.2--nightly.104-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"84f1fcff301207bc02037d29ee1b218d6882e91c","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.104","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-em7nKJp+fpixOpLZbRjKl8fcZcQmNDYV7pa4lYLADUPeZSQ+TOSEOE5ZxkrFmZYsMREPiQPPLDSwR/nOZyzJMg==","shasum":"728cecc0caf92981c753cc09717694f6978304c0","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.104.tgz","fileCount":8,"unpackedSize":35582,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHsvnctGpgvoJXSltWXkufrkQk2b6StX00MHB6vpnG/5AiBVGR8ERDsN5aiC7ASwiqJVjP5veUshtwwUr9tbQh4nLA=="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.104_1685316750903_0.7865266016247363"},"_hasShrinkwrap":false},"0.3.2-nightly.105":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.105","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.2.5","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.8","@typescript-eslint/parser":"^5.59.8","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^45.0.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.105](https://img.shields.io/badge/version-v0.3.2--nightly.105-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"b654e7e57441409f2add08cbae044ddae627a2e5","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.105","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-KqTJzIFyvFL3E++wCzFYmOY89vJ8dapFcFOKkFgl961rDPsEMVqtJ5RN4Chz8mKZ1fonbP6lHb67EeDOS5zwvQ==","shasum":"35463a976082f22f9aafd6fe4d1152d314becb5c","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.105.tgz","fileCount":8,"unpackedSize":35582,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICeeYH2E7Hil+BuT22SNvpMxEj7zJa3BneF4s3FIgLdlAiAIicy2fWiukTVhVwW2151MuypKz5JrLkw1c9CIwnTS+Q=="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.105_1685403152756_0.8217522825190671"},"_hasShrinkwrap":false},"0.3.2-nightly.106":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.106","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.1","@types/node":"^20.2.5","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.8","@typescript-eslint/parser":"^5.59.8","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.0.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.106](https://img.shields.io/badge/version-v0.3.2--nightly.106-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"2917d3b9fca0659fc69cb2fd86cf365317c03b90","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.106","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-HpnhSqm4XLg7fRekrwl646M9lowMckY04rvKVktapQJNu/CjjmohF7bE6E4FKevZwIbz2psdMzwv5eR8VjyT9g==","shasum":"4e4eb24504bd2c780625ba2a9e57ce2d30a425e6","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.106.tgz","fileCount":8,"unpackedSize":35582,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEbv34IjcHB+3IGcRHTE85euWQuPut8OadCK/AFM/A61AiACa1gHldjZEVPHEW7S+pJyXpDdqhx3JmtFy+JJkO+7+A=="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.106_1685489565469_0.5361490093993118"},"_hasShrinkwrap":false},"0.3.2-nightly.107":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.107","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.2.5","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.8","@typescript-eslint/parser":"^5.59.8","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.1.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.0.4","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.107](https://img.shields.io/badge/version-v0.3.2--nightly.107-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"25d392747465b18ff1b1e04d336a6dd92acdb02a","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.107","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Kq6Kf1qLzvjfj2vHyvZSkIPo/wK8ghYQSQcc8NU5KJDJeOAA/x5qw6fCWT+OKfaoF7gFsIkRlfPyfcZNhaI8wA==","shasum":"8ef357c4e99455102bb7537b21d2967d5c6e5e04","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.107.tgz","fileCount":8,"unpackedSize":35582,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFhxlWBZdkRpakStF/sL/s04Rw2JKPKcRtxZV3SRE9TlAiEAvh1HfSLp/49dnmkhOdZIHZCNiFaXM2CLU1xGvCVi/Gs="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.107_1685575950086_0.3880250021651306"},"_hasShrinkwrap":false},"0.3.2-nightly.108":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.108","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.2.5","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.8","@typescript-eslint/parser":"^5.59.8","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.1.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.108](https://img.shields.io/badge/version-v0.3.2--nightly.108-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"ed5ce8c93d60200c349eb2f79bdcd64cf1e47c4c","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.108","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-rv8vj679KXeu0ZCBLgz+twJ+SwDxNOnuTKZCXCD8m+bRhkMdw2m6mZkX8ALmO4XcYkBdZL7I13QST4q4M9byYA==","shasum":"04b32b2c12b9ce49210cbf6a559c034c2d1a543a","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.108.tgz","fileCount":8,"unpackedSize":35582,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBbQ2qniQbALrltzVX75VSkBWgO2sWNNj45oSgK9DWHFAiBDO/lRE3avqr01YxS4xPx6o7ONXo9oPILIG86BHD3eDw=="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.108_1685662364823_0.5783908520701495"},"_hasShrinkwrap":false},"0.3.2-nightly.109":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.109","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.2.5","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.8","@typescript-eslint/parser":"^5.59.8","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.2.0","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.109](https://img.shields.io/badge/version-v0.3.2--nightly.109-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"cdefd7c171e77817217d7bbd475b460495607989","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.109","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-mAkyLymG9iER1fC77qSpgKRmmGHoHuDhxkWBLKee5uaduQ+xDlUdmDHb6MHQn79dLyM0YgHKqmSo/PwBmh2hnw==","shasum":"66a515bda11767e138444963cae6f4f705f3e275","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.109.tgz","fileCount":8,"unpackedSize":35582,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIQDGVynIEklSDSlQ9xOCu22k7g32B3H1p4iakQjTLoBMmgIfYz6ULKAa7vOTwAeLHz1SCCIkWG886S31Mpr/ow1eUA=="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.109_1685748765501_0.44287197714622084"},"_hasShrinkwrap":false},"0.3.2-nightly.110":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.110","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.2.5","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.8","@typescript-eslint/parser":"^5.59.8","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.2.1","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.110](https://img.shields.io/badge/version-v0.3.2--nightly.110-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"c22ef80217a6696df896bc737a04bdd9df1edc07","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.110","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-9KntxZRyHClU6yPnMyZSbJI1WzSNKfqwWX+RkYWEhmzM9H1gjiOPJW1frH5v3EQ9qeCd9+eeNZKBtR5niLWRYw==","shasum":"94de77555d3dca9b618ee7e0cf9c948d33b2e0d0","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.110.tgz","fileCount":8,"unpackedSize":35582,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEiAt7h+ZIH8NM9V+gRxxitLUYsj/XJZiMnU1Of5MZJvAiEAlHTaUYCcJzqmnSIuiw0q5H+tb4mLM8Dw+t222228A7k="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.110_1685835143990_0.07686845212639226"},"_hasShrinkwrap":false},"0.3.2-nightly.111":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.111","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.2.5","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.8","@typescript-eslint/parser":"^5.59.8","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.2.4","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.111](https://img.shields.io/badge/version-v0.3.2--nightly.111-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"d09f3fa55daa6543938b2e07dfc0ecbeb2b09b7e","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.111","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-mkfeezcyIs9cl51bMkVuuSa+lhZgAcxI7a7Gg2rj2B0WfJsNo9kfL4YJEsVs2juaVC1vm/bg/ZqQWviqx/qaEw==","shasum":"dee7d0b9b8b0cbe7f233dc4ba857070252463884","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.111.tgz","fileCount":8,"unpackedSize":35582,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB8iNuMX4isirRWxO6E0ymJFBdnu7r0zh8J9DkgE4+yBAiAm8yuFy++m8w5jcr9GqWs6iqjcush5cXOYwLyR/5vXkw=="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.111_1685921552281_0.5849486117231271"},"_hasShrinkwrap":false},"0.3.2-nightly.112":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.112","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.2.5","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.9","@typescript-eslint/parser":"^5.59.9","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.2.4","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.112](https://img.shields.io/badge/version-v0.3.2--nightly.112-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"8c292f409b867ae034d4c0dcec5101316d39efc7","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.112","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-VEFO9nhv0tI3R7HEdsjcGrlL04SCPiFlmpESzJKDhtCzdwv60QCqQTjYy0GyGk4LpULq4UkrLOlTE9d7GQIWQw==","shasum":"d38fd82bbccc314b7cca7f3493dba225e2183a4f","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.112.tgz","fileCount":8,"unpackedSize":35582,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBRE6X87adfTql7OCgpJ6i6DGkwTEEUex+oA7jNCZShFAiEAoijsKjlgQ50UUCyWdoeCUJZj1zmmutAm6oNe/gZE48s="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.112_1686007954316_0.24452881249530356"},"_hasShrinkwrap":false},"0.3.2-nightly.113":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.113","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.2.5","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.9","@typescript-eslint/parser":"^5.59.9","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.2.5","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.113](https://img.shields.io/badge/version-v0.3.2--nightly.113-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"362225537de1a5611c009ae410c224c71416d002","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.113","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-43j3MbYdi7/ybgrOG0JhY4dF81M8caIod8/oIicQjzdZzzV2qomAMJWXqn/PddFZ28QVTbMEkkvCvZzmnvOJnw==","shasum":"ef8e0296dd21019e668d68ba5d5766cf6d571bbf","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.113.tgz","fileCount":8,"unpackedSize":35582,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBBsN/zXG2/HbhX+erId8p2d8tsIFeMi42Q3La2zbjvMAiBciPaQTRgdIdSViIxz6J/qZg1MHdDllNvNrNrlXBwiJQ=="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.113_1686094363146_0.7325924060986901"},"_hasShrinkwrap":false},"0.3.2-nightly.114":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.114","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.2.5","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.9","@typescript-eslint/parser":"^5.59.9","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.2.6","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.114](https://img.shields.io/badge/version-v0.3.2--nightly.114-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"2737b8b1f7907c6676c3a7bb5dcd18139c5f55f6","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.114","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-HgeSm2b84f4YzxylXBFfnVRbc1AiBT6o4sxQSod/xIrUqeqWXgO88P1xfBxV6Rx6k3w52mclRm9qd1av0Wa1oQ==","shasum":"7d364d201d03f7670c12d2a0a230f1a5aaeecc2b","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.114.tgz","fileCount":8,"unpackedSize":35582,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCU2UDLhYGBmXLQdKLYNuZHu6WnCNjGw+G0fEEu9tA2hgIhAPWPKuP19zGBXFvTQYKsLkcH4upMTcx/6LPnrwgY47I/"}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.114_1686180750969_0.12596667040026643"},"_hasShrinkwrap":false},"0.3.2-nightly.115":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.115","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.2.5","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.9","@typescript-eslint/parser":"^5.59.9","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.2.6","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.115](https://img.shields.io/badge/version-v0.3.2--nightly.115-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"5a1caab01f26e5944483adc68bf407af3460aa01","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.115","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-00Wu62Ixxt5hvg8rilK3uQ74NSVaMwJh8iLVShMEio/vXQ5Pm+zMwdr5edhViOfAsr0y+uvBPikbotTrD4CVzA==","shasum":"0301e702b5ba385e25656655b1e361aa23b90a66","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.115.tgz","fileCount":8,"unpackedSize":35582,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDca+3rda1nxStj3vsOHpPPR3qeCPssMzV24DM8eGHGJgIhAKqqbc1y8j050sGaW3G8qWbZVbHSTmtlYdleya+rVeNO"}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.115_1686267153281_0.9307353348174703"},"_hasShrinkwrap":false},"0.3.2-nightly.116":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.116","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.2.5","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.9","@typescript-eslint/parser":"^5.59.9","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.2.6","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.116](https://img.shields.io/badge/version-v0.3.2--nightly.116-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"0e2e521d4d2cd58f7c2fc29606f9efc757229484","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.116","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-ivAuYd1nTW8fDinOYA3NxFluOkD0HLcTf/YK3UKSo45JfF3lzB9rlRPvQShBQFbYysyB5aK2mvg2Lr+G3xk9Pw==","shasum":"c1e7370d183105e8e3321324e1e5d8fa58cec0f2","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.116.tgz","fileCount":8,"unpackedSize":35582,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtq1jQz9X3jdyysB1g1+Vo6ux5AIe6ClllGDxRGr6VOgIhANBe7ckZfXrJ/KTZVK9yFa8klYUROuKwrh0oOBiDW2/u"}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.116_1686353561199_0.1406677133470169"},"_hasShrinkwrap":false},"0.3.2-nightly.117":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.117","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.3.0","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.9","@typescript-eslint/parser":"^5.59.9","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.2.6","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.117](https://img.shields.io/badge/version-v0.3.2--nightly.117-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"df7d25d6a824222ab9fb3a36f439002c6cb57af7","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.117","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-6SusTlbukJ4/g73LsL7c73moyAxtnAl+QrdsBs3A+OPrG50BNG9ISyHF2XRYET/ak/3NuEIKc2FDTgdCXBCQTA==","shasum":"5cc5792f5e7c55129443d8c4dcf454f5fc2a35b1","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.117.tgz","fileCount":8,"unpackedSize":35582,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMvGASjJbMN16packNHTisGlcFcmfvqelZfppwApk0GQIhAMV9fT6vcju7LrLwY+jgmmpMHQc7R9yN0vWUgAxHz3/I"}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.117_1686439951861_0.43280970717036515"},"_hasShrinkwrap":false},"0.3.2-nightly.118":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.118","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.3.0","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.9","@typescript-eslint/parser":"^5.59.9","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.2.6","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^2.1.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.118](https://img.shields.io/badge/version-v0.3.2--nightly.118-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"7a9d724e15f3f227296b6c203317b972b9d7b141","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.118","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-S0ygq/wHfyt08tg0MrrKlagBD43yxp+qnQiSUFXXJ/Sb+PAF1PlYOKPe/EXukqUJp1UcyMx2UonacOjisI30hw==","shasum":"a439e36d0c47a214d1a5b236a98ec6a4b26e86c8","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.118.tgz","fileCount":8,"unpackedSize":35582,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDr96/8o0zhcoLUZdFkHrOj3pmXrC3QAedaaWXFQjWRAgIhAJyKizes9iMYpi1O25m9StaDN1KBy8QilLwDJYpFnt0X"}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.118_1686526368094_0.10874641667472895"},"_hasShrinkwrap":false},"0.3.2-nightly.119":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.119","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.3.1","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.11","@typescript-eslint/parser":"^5.59.11","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.2.6","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^3.0.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.119](https://img.shields.io/badge/version-v0.3.2--nightly.119-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"da3e96d6d37762847beac37f05aa44f1e095eb16","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.119","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Suc29leTNmQnXBsk7JboXJ0gCtHzAldV+YP0vXS8ayw8X0u4MT22mSz0+7RsnLKd0nY90JuP+081wKbrj1E3Bg==","shasum":"d679e250401d8e2ead1236a13799f5a435847e5c","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.119.tgz","fileCount":8,"unpackedSize":35584,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVDBZD8udEE/iNP0MNmoIghn/QmBsiCwxEea10wd5AMwIhAK98QEITYSS3sNts+M/3pBp59O1v5kUNOzRtIP+qdS0Z"}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.119_1686699148978_0.7710598752974587"},"_hasShrinkwrap":false},"0.3.2-nightly.120":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.120","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.3.1","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.11","@typescript-eslint/parser":"^5.59.11","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.2.6","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^3.0.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.120](https://img.shields.io/badge/version-v0.3.2--nightly.120-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"7aa9009f1f70847b4cfc1dd0c1e1991896c154c1","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.120","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-41FGWF1FA+hoTmu4i9/feBubfgiDT/TYbcLWPe7SPhUdKiLxVEDS2TkooiRFuuuIv3rEB81YPg0E2G47c2i63A==","shasum":"9ba15e3f2da986f8dd8d748b6ec9cc6dd037a708","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.120.tgz","fileCount":8,"unpackedSize":35584,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD3SUhTBxv1rlTMT/sKXwigYHD7gYqjepANaNUM8soWpQIhAPoRTTU+o7ZkLB7hHJac9imlaFdTthVJzbsMjL0rvMo7"}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.120_1686785571583_0.3615442640375588"},"_hasShrinkwrap":false},"0.3.2-nightly.121":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.121","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.3.1","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.11","@typescript-eslint/parser":"^5.59.11","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.2.6","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^3.0.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.121](https://img.shields.io/badge/version-v0.3.2--nightly.121-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"f74eb28cd7aabb34d494497c5c4d6f5f27d6a023","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.121","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-YTM5rCCgnJn5/XC6JOjlfZU8r/ThKTgpmV+YlEWGN/DhE3D94WAi8XarM6cyZLbALBv4nBdPmZs6yGGkq73kwg==","shasum":"5de4ba594053962164bc3d3617bffe3f25a8df48","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.121.tgz","fileCount":8,"unpackedSize":35584,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDUO+y5vxmiJfrkQxsLY1VkC3FmBX0GcPAsWoicD2nKIQIhAJ4QiCt6KQaJY2tt05+azCB01JXs/VMf59ERdJFomnrf"}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.121_1686871958152_0.46593017700975414"},"_hasShrinkwrap":false},"0.3.2-nightly.122":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.122","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.3.1","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.11","@typescript-eslint/parser":"^5.59.11","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.2.6","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^3.0.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.122](https://img.shields.io/badge/version-v0.3.2--nightly.122-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"d20d5bd5c3d07b3efcd7b6d4b31f8e3a2a314404","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.122","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-oQIP7law9B7cXizvpUxACsQTBhVLYNoCfwd9KGdgd6lLNQiAyRIHdp+0j2cgb3PSi6GBPPvXmW9hIlY7L+/ozg==","shasum":"caf49587de84ca7311400e16f77ec145bba65ca3","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.122.tgz","fileCount":8,"unpackedSize":35584,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0bqXIiN2b6djwX9B1ub/xtw0Q/HgoSwaJ558DR6cTHgIhAJQFtDmfcR7JkQnUqs/NvUI6cAII+NaFIO7yRv/swWdB"}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.122_1686958347021_0.6468332945603881"},"_hasShrinkwrap":false},"0.3.2-nightly.123":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.123","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.3.1","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.11","@typescript-eslint/parser":"^5.59.11","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.2.6","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^3.0.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.123](https://img.shields.io/badge/version-v0.3.2--nightly.123-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"4b53f9bc92f85df05a39c6a5fe026505166e1171","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.123","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-6kTrrW/I2ktpNFjPyckPwHaFBDSttiJqkdZ1ZlyrNfxcxBxCB42WSBgex2syXGp/AWlOXPUJ8CSv4QFNOYROnA==","shasum":"9e100cb559bbfe1b3a4a5b7ea5fe1adcd5bcc8cf","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.123.tgz","fileCount":8,"unpackedSize":35584,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwabBOjrmasp8oIr40KyJOv4omybwviVhFPtSNQOqLnwIgf5+U0xz+gVC3TdMHhZKSqmCKElHgaL7ts6VvAQyw0CY="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.123_1687044756480_0.6985934978737718"},"_hasShrinkwrap":false},"0.3.2-nightly.124":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.124","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.3.1","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.59.11","@typescript-eslint/parser":"^5.59.11","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.1","eslint-plugin-jsdoc":"^46.2.6","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^3.0.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.124](https://img.shields.io/badge/version-v0.3.2--nightly.124-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"665721bfc238ea28f7aaa7dc692443ec18abe9c7","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.124","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-VTewPVCXloPVHxw6mqFePGmFWrci9eWBSXPyLPxbVtw7qjG63fnF4IX7HReGpf9dR+IMBnnvJ0L3r5s+t5YrSw==","shasum":"1bc6aeb4fd4f3b76b6d6b46b906709f4d6efb58a","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.124.tgz","fileCount":8,"unpackedSize":35584,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGyHjLxpGIGGpr6f5O5FEW0drbVHba10q4Rby9AT1nY6AiEAyIpc9vetADzmJXjWx7SJ8xQeJowbUcZwCvOIA+SLd4E="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.124_1687131159299_0.29522683247884207"},"_hasShrinkwrap":false},"0.3.2-nightly.125":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.125","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.3.1","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.60.0","@typescript-eslint/parser":"^5.60.0","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.2","eslint-plugin-jsdoc":"^46.2.6","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.1","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^3.0.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.125](https://img.shields.io/badge/version-v0.3.2--nightly.125-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"48643250330654619797c8fbdfcf2e8ea0239cd7","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.125","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-PkzZlLTOZceAODKSxt2N6ghJtZUTljuMpC+FDPm6CjCc+qFrgJjE8bAmQy3tCaS1lpPPdvcYolxRI8k0GUEUVQ==","shasum":"421751df11f70aaa9b4573345309422550695d82","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.125.tgz","fileCount":8,"unpackedSize":35582,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC6bsUt16VT3999bVinC6PzRBXGbu6CPDrvfUS/SdAkaQIhALmyxVt2EvIzdjX30EXTqcnx+mBnbX0U1PXFswk8VGAL"}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.125_1687217549059_0.38312683296886174"},"_hasShrinkwrap":false},"0.3.2-nightly.126":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.126","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.3.1","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.60.0","@typescript-eslint/parser":"^5.60.0","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.2","eslint-plugin-jsdoc":"^46.2.6","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.2","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^3.0.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.126](https://img.shields.io/badge/version-v0.3.2--nightly.126-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"1572ae47010664efabc1740fdc1ac743b77b0d7f","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.126","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-ekMGmlXvHu2AQujTX8PYHPeYlTXCnm7Qu9RcFIb+ZKlo+DQKRs54gs3rCM+gSJENddAUxO5HYYgEZmjKa8EpVw==","shasum":"1a0c73b8a594c7e140d07c61ea9ae750e8211da3","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.126.tgz","fileCount":8,"unpackedSize":35582,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCnormkApWpRb/Ej0zXdZQKCj0wMqNmRm6mJj8JuWBKFwIgLqufoZXm4sRoVNwSWPLV/tb540yiU4nO4W/pRO5YgK4="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.126_1687303948131_0.5879654774089806"},"_hasShrinkwrap":false},"0.3.2-nightly.127":{"name":"@ptkdev/sveltekit-cordova-adapter","displayName":"SvelteKit Adapter for Mobile Apps with Cordova or Ionic Capacitor","description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","version":"0.3.2-nightly.127","main":"./app/adapter/index.js","type":"module","exports":{".":{"types":"./app/adapter/index.d.ts","import":"./app/adapter/index.js"},"./package.json":"./package.json"},"types":"./app/adapter/index.d.ts","publishConfig":{"access":"public"},"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"},"license":"MIT","license-docs":"CC BY 4.0","license-translations":"CC BY 4.0","license-images":"CC BY-NC 4.0","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"engines":{"node":">=14.0.0"},"scripts":{"build":"echo \"Compiling...\"","release":"npm run build","test":"jest app","docs":"git submodule update --recursive && markserv ./README.md","lint":"npm run lint-prettify && eslint . --cache --ext .ts,.js","lint-fix":"npm run lint-prettify && eslint . --cache --ext .ts,.js --fix","lint-prettify":"prettier --write --ignore-unknown '**/*.{md,json,ts,js}'","git-set-upstream":"git remote add upstream git@github.com:ptkdev/sveltekit-cordova-adapter.git && git fetch upstream","git-pull-upstream":"git pull upstream main && git pull upstream beta && git pull upstream nightly","git-pull":"git pull --recursive","git-hash":"ts-node --esm scripts/githash.ts","git-ignore-reset":"git rm -r --cached . && git add . && git commit -m \"[Fix] Removing all files in .gitignore\"","github-workflow-next-version":"ts-node --esm scripts/version.ts","github-workflow-changelog":"ts-node --esm scripts/changelog_release.ts","npm-publish-main":"git checkout main && npm publish","npm-publish-beta":"git checkout beta && npm publish --tag beta","npm-publish-nightly":"git checkout nightly && npm publish --tag nightly","contributors-generate":"all-contributors generate","all-shields-generate":"all-shields-generate","pre-commit":"npm run contributors-generate && npm run all-shields-generate && npm run lint-fix","pkg-clean":"rm -rf node_modules package-lock.json && npm install && npm install eslint@7 --save-dev && husky install","pkg-update":"npm update","pkg-upgrade":"npx --yes npm-check-updates -u && npm install && npm install eslint@7  --save-dev && husky install"},"dependencies":{"replace-in-file":"^7.0.1","tiny-glob":"^0.2.9"},"devDependencies":{"@ptkdev/all-shields-cli":"^2.0.2","@ptkdev/logger":"^1.8.0","@types/jest":"^29.5.2","@types/node":"^20.3.1","@types/shelljs":"^0.8.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^5.60.0","@typescript-eslint/parser":"^5.60.0","all-contributors-cli":"^6.26.0","eslint":"^7.32.0","eslint-plugin-jest":"^27.2.2","eslint-plugin-jsdoc":"^46.2.6","husky":"^8.0.3","jest":"^29.5.0","json":"^11.0.0","markserv":"^1.17.4","prettier":"^2.8.8","shelljs":"^0.8.5","sirv":"^2.0.3","svelte":"^3.59.2","ts-jest":"^29.1.0","ts-node":"^10.9.1","ts-patch":"^3.0.0","typescript":"^5.1.3","typescript-transform-paths":"^3.4.6","uvu":"^0.5.6","vite":"^4.3.9","yargs":"^17.7.2"},"peerDependencies":{"@sveltejs/kit":"^1.0.0"},"keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"readme":"[![sveltekit-cordova-adapter logo](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/logo.png)](https://github.com/ptkdev/sveltekit-cordova-adapter)\n\n# 🔌 sveltekit-cordova-adapter\n\n<!-- all-shields/header-badges:START -->\n\n[![v0.3.2-nightly.127](https://img.shields.io/badge/version-v0.3.2--nightly.127-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-cordova-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-cordova-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-cordova-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: SvelteKit](https://img.shields.io/badge/powered%20by-sveltekit-ff531a.svg?style=flat&logo=svelte)](https://kit.svelte.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)\n\n<!-- all-shields/header-badges:END -->\n\n[Adapter](https://kit.svelte.dev/docs/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files for use with [Cordova](https://cordovajs.org) / [Capacitor](https://capacitorjs.com/). Create your mobile apps android/ios with SvelteKit and Apache Cordova or Ionic Capacitor.\n\nThis is a fork of official [sveltekit-static-adapter](https://kit.svelte.dev/docs/adapter-static)\n\n## 🎁 Support: Donate\n\n> This project is **free**, **open source** and I try to provide excellent **free support**. Why donate? I work on this project several hours in my spare time and try to keep it up to date and working. **THANK YOU!**\n\n<!-- all-shields/sponsors-badges:START -->\n\n[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)\n\n<!-- all-shields/sponsors-badges:END -->\n\n## 📎 Menu\n\n-   💡 [Features](#-features)\n-   👔 [Screenshot](#-screenshot)\n-   🚀 [Setup (Cordova)](#-setup-cordova)\n-   🚀 [Setup (Capacitor)](#-setup-capacitor)\n-   🧰 [Options](#-options)\n-   📚 [Documentation](#-documentation)\n-   👨‍💻 [Contributing](#-contributing)\n-   🐛 [Known Bugs](https://github.com/ptkdev/sveltekit-cordova-adapter/issues?q=is%3Aopen+is%3Aissue+label%3Abug)\n-   🍻 Community:\n    -   <img src=\"https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/social_telegram.png\" height=\"18px\"> Telegram ([🇬🇧 English](http://t.me/ptkdev_support) | [🇮🇹 Italian](http://t.me/ptkdev_support_italian))\n\n## 💡 Features\n\n-   [✔️] Easy to use\n-   [✔️] MIT License\n-   [✔️] Make android app with svelte kit\n-   [✔️] Make ios app with svelte kit\n-   [✔️] Make mobile apps with svelte kit and apache cordova\n-   [✔️] Make mobile apps with svelte kit and capacitor by ionic\n\n## 👔 Screenshot\n\n[![sveltekit-cordova-adapter](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)](https://raw.githubusercontent.com/ptkdev/sveltekit-cordova-adapter/main/.github/assets/screenshot.png)\n\n## 🚀 Setup (Cordova)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"cordova\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Cordova Project](https://cordova.apache.org/)\n6. Copy `build` content from sveltekit project and paste in `www` folder of cordova project\n7. Run Cordova project with `cordova run ios` or `cordova run android`\n\n## 🚀 Setup (Capacitor)\n\n1. Create [new SvelteKit Project](https://kit.svelte.dev/docs/creating-a-project)\n2. Install this adapter `npm install @ptkdev/sveltekit-cordova-adapter --save-dev`\n3. Edit `svelte.config.js` and replace default adapter with cordova-adapter:\n\n```js\nimport adapter from \"@ptkdev/sveltekit-cordova-adapter\";\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tplatform: \"capacitor\",\n\t\t}),\n\t},\n};\n```\n\n4. Run `npm run build` (⚠️ IMPORTANT: Only pages with `export const prerender = true;` are supported)\n5. Create [new Capacitor Project](https://capacitorjs.com/docs/getting-started)\n6. Copy `build` content from sveltekit project and paste in `dist` folder of ionic capacitor project\n7. Run Capacitor project with `npx cap sync && npx cap run ios` or `npx cap sync && npx cap run android`\n\n## 🧰 Options\n\nThe `adapter({ options })` parameters list:\n\n| Parameter   | Description                                                     | Values                  | Default value                                               | Available since |\n| ----------- | --------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------- | --------------- |\n| pages       | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| assets      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| fallback    | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| precompress | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| strict      | See official [docs](https://kit.svelte.dev/docs/adapter-static) |                         |                                                             |                 |\n| policy      | Set meta-tag `content-security-policy`                          | String                  | Empty                                                       | v0.2.0          |\n| viewport    | Set meta-tag `viewport`                                         | String                  | `width=device-width, initial-scale=1.0, viewport-fit=cover` | v0.2.0          |\n| safearea    | Set css safe area for iphone with notch or dynamic island       | `true` / `false`        | `true`                                                      | v0.2.0          |\n| platform    | Compile optimization for cordova or capacitor                   | `cordova` / `capacitor` | `cordova`                                                   | v0.2.0          |\n\n#### Example:\n\n```js\nconst config = {\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tstrict: false,\n\t\t\tpolicy: \"default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;\",\n\t\t\tviewport: `width=device-width`,\n\t\t}),\n\t},\n};\n```\n\n## 📚 Documentation\n\nRun `npm run docs`\n\n## 👑 Backers and Sponsors\n\nThanks to all our backers! 🙏 Donate 3$ or more on [paypal](https://www.paypal.me/ptkdev), [ko-fi](https://ko-fi.com/ptkdev), [github](https://github.com/sponsors/ptkdev) or [patreon](https://www.patreon.com/join/ptkdev) and send me [email](mailto:support@ptkdev.io) with your avatar and url.\n\n[![](https://api.ptkdev.io/backers/sponsor1.png?)](https://api.ptkdev.io/backers/sponsor1.html) [![](https://api.ptkdev.io/backers/sponsor2.png?)](https://api.ptkdev.io/backers/sponsor2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi1.png?)](https://api.ptkdev.io/backers/sponsor-kofi1.html) [![](https://api.ptkdev.io/backers/sponsor-kofi2.png?)](https://api.ptkdev.io/backers/sponsor-kofi2.html) [![](https://api.ptkdev.io/backers/sponsor-kofi3.png?)](https://api.ptkdev.io/backers/sponsor-kofi3.html) [![](https://api.ptkdev.io/backers/sponsor3.png?)](https://api.ptkdev.io/backers/sponsor3.html) [![](https://api.ptkdev.io/backers/sponsor4.png?)](https://api.ptkdev.io/backers/sponsor4.html) [![](https://api.ptkdev.io/backers/sponsor5.png?)](https://api.ptkdev.io/backers/sponsor5.html) [![](https://api.ptkdev.io/backers/sponsor6.png?)](https://api.ptkdev.io/backers/sponsor6.html) [![](https://api.ptkdev.io/backers/sponsor7.png?)](https://api.ptkdev.io/backers/sponsor7.html) [![](https://api.ptkdev.io/backers/sponsor8.png?)](https://api.ptkdev.io/backers/sponsor8.html) [![](https://api.ptkdev.io/backers/sponsor9.png?)](https://api.ptkdev.io/backers/sponsor9.html) [![](https://api.ptkdev.io/backers/sponsor10.png?)](https://api.ptkdev.io/backers/sponsor10.html) [![](https://api.ptkdev.io/backers/sponsor11.png?)](https://api.ptkdev.io/backers/sponsor11.html) [![](https://api.ptkdev.io/backers/sponsor12.png?)](https://api.ptkdev.io/backers/sponsor12.html) [![](https://api.ptkdev.io/backers/sponsor13.png?)](https://api.ptkdev.io/backers/sponsor13.html) [![](https://api.ptkdev.io/backers/sponsor14.png?)](https://api.ptkdev.io/backers/sponsor14.html) [![](https://api.ptkdev.io/backers/sponsor15.png?)](https://api.ptkdev.io/backers/sponsor15.html) [![](https://api.ptkdev.io/backers/backer1.png?)](https://api.ptkdev.io/backers/backer1.html) [![](https://api.ptkdev.io/backers/backer2.png?)](https://api.ptkdev.io/backers/backer2.html) [![](https://api.ptkdev.io/backers/backer3.png?)](https://api.ptkdev.io/backers/backer3.html) [![](https://api.ptkdev.io/backers/backer4.png?)](https://api.ptkdev.io/backers/backer4.html) [![](https://api.ptkdev.io/backers/backer5.png?)](https://api.ptkdev.io/backers/backer5.html) [![](https://api.ptkdev.io/backers/backer6.png?)](https://api.ptkdev.io/backers/backer6.html) [![](https://api.ptkdev.io/backers/backer7.png?)](https://api.ptkdev.io/backers/backer7.html) [![](https://api.ptkdev.io/backers/backer8.png?)](https://api.ptkdev.io/backers/backer8.html) [![](https://api.ptkdev.io/backers/backer9.png?)](https://api.ptkdev.io/backers/backer9.html) [![](https://api.ptkdev.io/backers/backer10.png?)](https://api.ptkdev.io/backers/backer10.html) [![](https://api.ptkdev.io/backers/backer11.png?)](https://api.ptkdev.io/backers/backer11.html) [![](https://api.ptkdev.io/backers/backer12.png?)](https://api.ptkdev.io/backers/backer12.html) [![](https://api.ptkdev.io/backers/backer13.png?)](https://api.ptkdev.io/backers/backer13.html) [![](https://api.ptkdev.io/backers/backer14.png?)](https://api.ptkdev.io/backers/backer14.html) [![](https://api.ptkdev.io/backers/backer15.png?)](https://api.ptkdev.io/backers/backer15.html) [![](https://api.ptkdev.io/backers/backer16.png?)](https://api.ptkdev.io/backers/backer16.html) [![](https://api.ptkdev.io/backers/backer17.png?)](https://api.ptkdev.io/backers/backer17.html) [![](https://api.ptkdev.io/backers/backer18.png?)](https://api.ptkdev.io/backers/backer18.html) [![](https://api.ptkdev.io/backers/backer19.png?)](https://api.ptkdev.io/backers/backer19.html) [![](https://api.ptkdev.io/backers/backer20.png?)](https://api.ptkdev.io/backers/backer20.html) [![](https://api.ptkdev.io/backers/backer21.png?)](https://api.ptkdev.io/backers/backer21.html) [![](https://api.ptkdev.io/backers/backer22.png?)](https://api.ptkdev.io/backers/backer22.html) [![](https://api.ptkdev.io/backers/backer23.png?)](https://api.ptkdev.io/backers/backer23.html) [![](https://api.ptkdev.io/backers/backer24.png?)](https://api.ptkdev.io/backers/backer24.html) [![](https://api.ptkdev.io/backers/backer25.png?)](https://api.ptkdev.io/backers/backer25.html) [![](https://api.ptkdev.io/backers/backer26.png?)](https://api.ptkdev.io/backers/backer26.html) [![](https://api.ptkdev.io/backers/backer27.png?)](https://api.ptkdev.io/backers/backer27.html) [![](https://api.ptkdev.io/backers/backer28.png?)](https://api.ptkdev.io/backers/backer28.html) [![](https://api.ptkdev.io/backers/backer29.png?)](https://api.ptkdev.io/backers/backer29.html)\n\n## 👨‍💻 Contributing\n\nI ❤️ contributions! I will happily accept your pull request! (**IMPORTANT**: Only to nightly branch!) Translations, grammatical corrections (GrammarNazi you are welcome! Yes my English is bad, sorry), etc... Do not be afraid, if the code is not perfect we will work together 👯 and remember to insert your name in `.all-contributorsrc` and `package.json` file.\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"16.66%\"><a href=\"https://ptk.dev\"><img src=\"https://avatars1.githubusercontent.com/u/442844?v=4?s=100\" width=\"100px;\" alt=\"Patryk Rzucidło\"/><br /><sub><b>Patryk Rzucidło</b></sub></a><br /><a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Code\">💻</a> <a href=\"#translation-ptkdev\" title=\"Translation\">🌍</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/commits?author=ptkdev\" title=\"Documentation\">📖</a> <a href=\"https://github.com/ptkdev/ptkdev/sveltekit-cordova-adapter/issues?q=author%3Aptkdev\" title=\"Bug reports\">🐛</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n> 💰 In the future, if the donations allow it, I would like to share some of the success with those who helped me the most. For me open source is share of code, share development knowledges and share donations!\n\n## 🦄 Other Projects\n\n<!-- all-shields/projects-badges1:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%92%BB%20My-Portfolio-3498db.svg?style=flat&logo=)](https://ptk.dev/)\n\n<!-- all-shields/projects-badges1:END -->\n\n<!-- all-shields/projects-badges2:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%A6%92%20Tools-Node%20Logger-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-logger) [![](https://img.shields.io/badge/%F0%9F%A6%8C%20Tools-All%20Shields%20CLI-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/all-shields-cli) [![](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Tools-Aspect%20Ratio%2021%3A9-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/chrome-extension-aspectratio219) [![](https://img.shields.io/badge/%F0%9F%9B%A1%20Tools-Badges%3A%20Available%20on-9b59b6.svg?style=flat&logo=)](https://availableon.badge.ptkdev.io/) [![](https://img.shields.io/badge/%F0%9F%90%BE%20Tools-JSON%20Token%20Replace-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/json-token-replace) [![](https://img.shields.io/badge/%F0%9F%90%8D%20Tools-ESLint%3A%20snakecasejs-9b59b6.svg?style=flat&logo=)](https://github.com/ptkdev/eslint-plugin-snakecasejs)\n\n<!-- all-shields/projects-badges2:END -->\n\n<!-- all-shields/projects-badges3:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%93%B8%20WebComponent-Instagram%20Widget-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-instagram-widget) [![](https://img.shields.io/badge/%F0%9F%91%91%20WebComponent-My%20Patreon%20Box-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-patreon-box) [![](https://img.shields.io/badge/%F0%9F%8F%9E%20WebComponent-Carousel%20Slideshow-e74c3c.svg?style=flat&logo=)](https://github.com/ptkdev-components/webcomponent-carousel-slideshow)\n\n<!-- all-shields/projects-badges3:END -->\n\n<!-- all-shields/projects-badges4:START -->\n\n[![](https://img.shields.io/badge/%F0%9F%8E%A8%20Themes-VSCode-f1c40f.svg?style=flat&logo=)](https://github.com/ptkdev/vscode-theme-dark-blood) [![](https://img.shields.io/badge/%F0%9F%93%9A%20Bot-GameBookChat-34495e.svg?style=flat&logo=)](https://t.me/gamebookchatbot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Svelte-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=svelte) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-WebComponents-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=webcomponent) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-BOT-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=bot) [![](https://img.shields.io/badge/%F0%9F%91%94%20Boilerplate-Node-f368e0.svg?style=flat&logo=)](https://github.com/ptkdev?q=node) [![](https://img.shields.io/badge/%F0%9F%92%85%20App-Me%20in%20Gifs-2ecc71.svg?style=flat&logo=)](https://meingifs.pics/) [![](https://img.shields.io/badge/%F0%9F%93%B1%20App-Stickers-2ecc71.svg?style=flat&logo=)](https://github.com/ptkdev/ptkdev-stickers#-install-free)\n\n<!-- all-shields/projects-badges4:END -->\n\n## 💫 License\n\n-   Code and Contributions have **MIT License**\n-   Images and logos have **CC BY-NC 4.0 License**\n-   Documentations and Translations have **CC BY 4.0 License**\n\n###### Copyleft (c) 2022 [Patryk Rzucidło](https://ptk.dev) ([@PTKDev](https://twitter.com/ptkdev)) <[support@ptkdev.io](mailto:support@ptkdev.io)>\n","readmeFilename":"README.md","gitHead":"6ad60a83ef7c38d3cebd65e0fa0c20860813806f","_id":"@ptkdev/sveltekit-cordova-adapter@0.3.2-nightly.127","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-W3OG6eJtvTCIWKtRcLPCA4vGk1COBEvdL3WnfK0T1tmnM0PxtAYC4hnkg0cModXQUumilBhThDE55UHrhLZe1g==","shasum":"3bfc9495104ebba579d4ec4db021c55f9166f3ca","tarball":"https://registry.npmjs.org/@ptkdev/sveltekit-cordova-adapter/-/sveltekit-cordova-adapter-0.3.2-nightly.127.tgz","fileCount":8,"unpackedSize":35582,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICxuPrGF5ogsH6e1IJ+n7/JFmY6g0YnGDW51QsF/DPe0AiEAvZasNNIOFgZ6Fh5ma6UEntY1IPZQr3cIR7eKtVholXs="}]},"_npmUser":{"name":"ptkdevio","email":"ptkdev@gmail.com"},"directories":{},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sveltekit-cordova-adapter_0.3.2-nightly.127_1687390347495_0.840667819628357"},"_hasShrinkwrap":false}},"time":{"created":"2023-02-07T18:42:27.911Z","0.1.0":"2023-02-07T18:42:28.169Z","modified":"2023-06-21T23:32:27.880Z","0.2.0":"2023-02-11T02:39:50.048Z","0.3.0-beta.1":"2023-02-11T20:10:00.135Z","0.3.0":"2023-02-11T20:13:48.189Z","0.3.1-beta.1":"2023-02-11T20:26:33.394Z","0.3.1":"2023-02-11T20:28:16.646Z","0.3.2-nightly.1":"2023-02-11T23:32:29.120Z","0.3.2-nightly.2":"2023-02-12T23:32:34.593Z","0.3.2-nightly.3":"2023-02-13T23:32:36.854Z","0.3.2-nightly.4":"2023-02-14T23:32:31.711Z","0.3.2-nightly.5":"2023-02-16T23:32:39.020Z","0.3.2-nightly.6":"2023-02-17T23:32:36.236Z","0.3.2-nightly.7":"2023-02-18T23:32:43.895Z","0.3.2-nightly.8":"2023-02-19T23:32:24.401Z","0.3.2-nightly.9":"2023-02-20T23:32:29.057Z","0.3.2-nightly.10":"2023-02-21T23:32:36.870Z","0.3.2-nightly.11":"2023-02-22T23:32:32.570Z","0.3.2-nightly.12":"2023-02-23T23:32:41.883Z","0.3.2-nightly.13":"2023-02-24T23:32:36.071Z","0.3.2-nightly.14":"2023-02-25T23:32:41.802Z","0.3.2-nightly.15":"2023-02-26T23:32:22.385Z","0.3.2-nightly.16":"2023-02-27T23:32:47.202Z","0.3.2-nightly.17":"2023-02-28T23:32:43.727Z","0.3.2-nightly.18":"2023-03-01T23:33:35.190Z","0.3.2-nightly.19":"2023-03-03T23:32:34.330Z","0.3.2-nightly.20":"2023-03-04T23:32:42.682Z","0.3.2-nightly.21":"2023-03-05T23:32:45.505Z","0.3.2-nightly.22":"2023-03-06T23:32:44.807Z","0.3.2-nightly.23":"2023-03-07T23:32:51.079Z","0.3.2-nightly.24":"2023-03-08T23:32:34.924Z","0.3.2-nightly.25":"2023-03-09T23:33:02.440Z","0.3.2-nightly.26":"2023-03-10T23:32:44.767Z","0.3.2-nightly.27":"2023-03-11T23:32:31.873Z","0.3.2-nightly.28":"2023-03-12T23:32:25.770Z","0.3.2-nightly.29":"2023-03-13T23:32:35.309Z","0.3.2-nightly.30":"2023-03-14T23:32:59.859Z","0.3.2-nightly.31":"2023-03-15T23:32:24.704Z","0.3.2-nightly.32":"2023-03-16T23:32:33.966Z","0.3.2-nightly.33":"2023-03-17T23:32:43.929Z","0.3.2-nightly.34":"2023-03-18T23:32:34.868Z","0.3.2-nightly.35":"2023-03-19T23:32:44.639Z","0.3.2-nightly.36":"2023-03-20T23:32:43.945Z","0.3.2-nightly.37":"2023-03-21T23:32:25.977Z","0.3.2-nightly.38":"2023-03-22T23:32:33.132Z","0.3.2-nightly.39":"2023-03-23T23:32:32.558Z","0.3.2-nightly.40":"2023-03-24T23:32:30.941Z","0.3.2-nightly.41":"2023-03-25T23:32:36.650Z","0.3.2-nightly.42":"2023-03-26T23:32:29.752Z","0.3.2-nightly.43":"2023-03-27T23:32:34.870Z","0.3.2-nightly.44":"2023-03-28T23:32:42.623Z","0.3.2-nightly.45":"2023-03-29T23:32:37.956Z","0.3.2-nightly.46":"2023-03-30T23:32:45.631Z","0.3.2-nightly.47":"2023-03-31T23:32:45.303Z","0.3.2-nightly.48":"2023-04-01T23:32:44.734Z","0.3.2-nightly.49":"2023-04-02T23:32:51.823Z","0.3.2-nightly.50":"2023-04-03T23:32:30.056Z","0.3.2-nightly.51":"2023-04-04T23:32:31.862Z","0.3.2-nightly.52":"2023-04-05T23:32:26.214Z","0.3.2-nightly.53":"2023-04-06T23:32:48.334Z","0.3.2-nightly.54":"2023-04-07T23:32:30.543Z","0.3.2-nightly.55":"2023-04-08T23:32:37.744Z","0.3.2-nightly.56":"2023-04-09T23:32:33.092Z","0.3.2-nightly.57":"2023-04-10T23:32:44.051Z","0.3.2-nightly.58":"2023-04-11T23:32:57.220Z","0.3.2-nightly.59":"2023-04-12T23:32:45.281Z","0.3.2-nightly.60":"2023-04-13T23:32:39.995Z","0.3.2-nightly.61":"2023-04-14T23:32:33.686Z","0.3.2-nightly.62":"2023-04-15T23:32:36.009Z","0.3.2-nightly.63":"2023-04-16T23:32:48.996Z","0.3.2-nightly.64":"2023-04-17T23:32:46.751Z","0.3.2-nightly.65":"2023-04-18T23:32:33.365Z","0.3.2-nightly.66":"2023-04-19T23:32:31.976Z","0.3.2-nightly.67":"2023-04-20T23:32:42.871Z","0.3.2-nightly.68":"2023-04-21T23:32:26.316Z","0.3.2-nightly.69":"2023-04-22T23:32:28.180Z","0.3.2-nightly.70":"2023-04-23T23:32:34.682Z","0.3.2-nightly.71":"2023-04-24T23:32:42.661Z","0.3.2-nightly.72":"2023-04-25T23:32:26.652Z","0.3.2-nightly.73":"2023-04-26T23:32:30.203Z","0.3.2-nightly.74":"2023-04-27T23:32:39.067Z","0.3.2-nightly.75":"2023-04-28T23:32:28.899Z","0.3.2-nightly.76":"2023-04-29T23:32:33.440Z","0.3.2-nightly.77":"2023-04-30T23:32:28.157Z","0.3.2-nightly.78":"2023-05-02T23:32:35.150Z","0.3.2-nightly.79":"2023-05-03T23:32:35.454Z","0.3.2-nightly.80":"2023-05-04T23:32:41.973Z","0.3.2-nightly.81":"2023-05-05T23:32:32.280Z","0.3.2-nightly.82":"2023-05-06T23:32:42.070Z","0.3.2-nightly.83":"2023-05-07T23:32:40.468Z","0.3.2-nightly.84":"2023-05-08T23:32:43.538Z","0.3.2-nightly.85":"2023-05-09T23:32:30.955Z","0.3.2-nightly.86":"2023-05-10T23:32:34.845Z","0.3.2-nightly.87":"2023-05-11T23:32:42.453Z","0.3.2-nightly.88":"2023-05-12T23:32:53.406Z","0.3.2-nightly.89":"2023-05-13T23:32:36.103Z","0.3.2-nightly.90":"2023-05-14T23:32:40.189Z","0.3.2-nightly.91":"2023-05-15T23:32:29.106Z","0.3.2-nightly.92":"2023-05-16T23:32:49.846Z","0.3.2-nightly.93":"2023-05-17T23:32:47.396Z","0.3.2-nightly.94":"2023-05-18T23:32:38.060Z","0.3.2-nightly.95":"2023-05-19T23:32:26.772Z","0.3.2-nightly.96":"2023-05-20T23:32:41.903Z","0.3.2-nightly.97":"2023-05-21T23:32:27.320Z","0.3.2-nightly.98":"2023-05-22T23:32:24.751Z","0.3.2-nightly.99":"2023-05-23T23:32:26.628Z","0.3.2-nightly.100":"2023-05-24T23:32:46.448Z","0.3.2-nightly.101":"2023-05-25T23:32:43.179Z","0.3.2-nightly.102":"2023-05-26T23:32:35.663Z","0.3.2-nightly.103":"2023-05-27T23:32:48.894Z","0.3.2-nightly.104":"2023-05-28T23:32:31.081Z","0.3.2-nightly.105":"2023-05-29T23:32:32.929Z","0.3.2-nightly.106":"2023-05-30T23:32:45.743Z","0.3.2-nightly.107":"2023-05-31T23:32:30.232Z","0.3.2-nightly.108":"2023-06-01T23:32:45.009Z","0.3.2-nightly.109":"2023-06-02T23:32:45.716Z","0.3.2-nightly.110":"2023-06-03T23:32:24.172Z","0.3.2-nightly.111":"2023-06-04T23:32:32.446Z","0.3.2-nightly.112":"2023-06-05T23:32:34.498Z","0.3.2-nightly.113":"2023-06-06T23:32:43.327Z","0.3.2-nightly.114":"2023-06-07T23:32:31.170Z","0.3.2-nightly.115":"2023-06-08T23:32:33.440Z","0.3.2-nightly.116":"2023-06-09T23:32:41.339Z","0.3.2-nightly.117":"2023-06-10T23:32:32.031Z","0.3.2-nightly.118":"2023-06-11T23:32:48.293Z","0.3.2-nightly.119":"2023-06-13T23:32:29.281Z","0.3.2-nightly.120":"2023-06-14T23:32:51.728Z","0.3.2-nightly.121":"2023-06-15T23:32:38.335Z","0.3.2-nightly.122":"2023-06-16T23:32:27.240Z","0.3.2-nightly.123":"2023-06-17T23:32:36.680Z","0.3.2-nightly.124":"2023-06-18T23:32:39.467Z","0.3.2-nightly.125":"2023-06-19T23:32:29.218Z","0.3.2-nightly.126":"2023-06-20T23:32:28.383Z","0.3.2-nightly.127":"2023-06-21T23:32:27.747Z"},"maintainers":[{"name":"ptkdevio","email":"ptkdev@gmail.com"}],"description":"Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Cordova or Ionic Capacitor (android/ios)","homepage":"https://github.com/ptkdev/sveltekit-cordova-adapter","repository":{"type":"git","url":"git+https://github.com/ptkdev/sveltekit-cordova-adapter.git"},"bugs":{"url":"https://github.com/ptkdev/sveltekit-cordova-adapter/issues"},"license":"MIT","readme":"","readmeFilename":"","keywords":["ptkdev","svelte","sveltekit","cordova","cordovajs","capacitor","ionic capacitor","capacitorjs","sveltekit adapter","sveltekit cordova","sveltekit capacitor","sveltekit mobile app","sveltekit android","sveltekit ios"],"author":{"name":"Patryk Rzucidło [@ptkdev]","email":"support@ptkdev.io","url":"https://ptk.dev"}}