temp
This commit is contained in:
32
vite-godot.config.js
Normal file
32
vite-godot.config.js
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
Copyright 2025 New Vector Ltd.
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
Please see LICENSE in the repository root for full details.
|
||||
*/
|
||||
|
||||
import { defineConfig, mergeConfig } from "vite";
|
||||
import { viteSingleFile } from "vite-plugin-singlefile";
|
||||
import fullConfig from "./vite.config";
|
||||
|
||||
const base = "./";
|
||||
|
||||
// Config for embedded deployments (possibly hosted under a non-root path)
|
||||
export default defineConfig((env) =>
|
||||
mergeConfig(
|
||||
fullConfig({ ...env, packageType: "godot" }),
|
||||
defineConfig({
|
||||
base, // Use relative URLs to allow the app to be hosted under any path
|
||||
// publicDir: false, // Don't serve the public directory which only contains the favicon
|
||||
build: {
|
||||
manifest: true,
|
||||
lib: {
|
||||
entry: "./godot/main.ts",
|
||||
name: "matrixrtc-ec-godot",
|
||||
// the proper extensions will be added
|
||||
fileName: "matrixrtc-ec-godot",
|
||||
},
|
||||
},
|
||||
}),
|
||||
),
|
||||
);
|
||||
Reference in New Issue
Block a user