chore: more small work

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2023-10-02 15:51:56 +02:00
parent b3989e18a1
commit 605c0d171b
3 changed files with 1009 additions and 127 deletions
+7 -1
View File
@@ -163,6 +163,7 @@ export async function serveBundle(options: ServeOptions) {
if (process.env.EXPERIMENTAL_VITE) {
server = await vite.createServer({
mode: 'development',
define: {
global: 'globalThis',
APP_CONFIG: JSON.stringify(cliConfig.frontendAppConfigs),
@@ -177,7 +178,12 @@ export async function serveBundle(options: ServeOptions) {
vitePluginSvgr(),
viteCommonjs(),
viteNodePolyfills(),
htmlTemplate(),
htmlTemplate({
data: {
publicPath: config.output?.publicPath,
config: frontendConfig,
},
}),
],
server: {
host,