forked from MapComplete/MapComplete
Android: add passthrough pages
This commit is contained in:
parent
969ad74bd9
commit
a34abb702c
6 changed files with 104 additions and 0 deletions
28
app/app.vite.config.js
Normal file
28
app/app.vite.config.js
Normal file
|
@ -0,0 +1,28 @@
|
|||
import { defineConfig } from "vite"
|
||||
import { svelte } from "@sveltejs/vite-plugin-svelte"
|
||||
import fs from "fs"
|
||||
import basicSsl from "@vitejs/plugin-basic-ssl"
|
||||
|
||||
const input = { "land": "./app/land.html", passthrough: "./app/passthrough.html" }
|
||||
|
||||
|
||||
console.log("Args:", process.argv)
|
||||
const plugins = [svelte()]
|
||||
if (process.argv.indexOf("--https") >= 0) {
|
||||
console.log("Adding basicSSL")
|
||||
plugins.push(basicSsl())
|
||||
}
|
||||
const ASSET_URL = process.env.ASSET_URL || ""
|
||||
export default defineConfig({
|
||||
build: {
|
||||
rollupOptions: {
|
||||
input,
|
||||
},
|
||||
outDir: "./app/dist/",
|
||||
},
|
||||
base: `./app/`,
|
||||
plugins,
|
||||
server: {
|
||||
port: 1234,
|
||||
},
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue