forked from quoid/userscripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-app.js
More file actions
26 lines (24 loc) · 680 Bytes
/
Copy pathbuild-app.js
File metadata and controls
26 lines (24 loc) · 680 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
* @file Build App WebView resources using the Vite JavaScript API
* @see {@link https://vitejs.dev/guide/api-javascript.html JavaScript API}
*
* All build processes start at the same time due to asynchronous calls
* The assets name is irrelevant, just need to determine the entry path
*/
import { build } from "vite";
import { svelte } from "@sveltejs/vite-plugin-svelte";
import { baseConfig } from "./utils.js";
/**
* Build App-Shared WebView resources to xcode dist
*/
build({
...baseConfig,
plugins: [svelte()],
build: {
outDir: "xcode/App-Shared/Resources/dist/",
copyPublicDir: false,
rollupOptions: {
input: "entry-app-webview.html",
},
},
});