From 6ca338fac4fc1cd79e36cec4cbe731cb1868b1c4 Mon Sep 17 00:00:00 2001 From: Raphael Forment Date: Tue, 19 Dec 2023 13:39:36 +0100 Subject: [PATCH] some more tweaking for assets --- manifest.webmanifest | 1 - vite.config.js | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/manifest.webmanifest b/manifest.webmanifest index 4b45571..0d8fdb0 100644 --- a/manifest.webmanifest +++ b/manifest.webmanifest @@ -18,7 +18,6 @@ "id": "toposWebApp", "theme_color": "#ffffff", "background_color": "#ffffff", - "scope": "/", "description": "Topos is a web based live coding platform", "screenshots": [ { diff --git a/vite.config.js b/vite.config.js index 262f0f4..ece1292 100644 --- a/vite.config.js +++ b/vite.config.js @@ -53,6 +53,14 @@ export default defineConfig(({ command, mode, ssrBuild }) => { port: 8000, strictPort: true, }, + build: { + outDir: "dist", + emptyOutDir: true, + cssCodeSplit: true, + cssMinify: true, + minify: true, + publicDir: "favicon", + } }; } else { return { @@ -64,6 +72,7 @@ export default defineConfig(({ command, mode, ssrBuild }) => { cssCodeSplit: true, cssMinify: true, minify: true, + publicDir: "favicon", }, }; }