From 9e9c656303eb5859528dd53022b1c4ea6d1a445d Mon Sep 17 00:00:00 2001 From: Lorenzo Palaia Date: Thu, 7 Dec 2023 17:38:16 +0100 Subject: [PATCH] sitemap test --- index.html | 1 + vite.config.js | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 34ffb70..05b71ea 100644 --- a/index.html +++ b/index.html @@ -2,6 +2,7 @@ + diff --git a/vite.config.js b/vite.config.js index f2301ca..f3b4c8e 100644 --- a/vite.config.js +++ b/vite.config.js @@ -16,5 +16,19 @@ export default defineConfig({ server: { host: true }, - base: '/Personal-Portfolio/' + base: '/Personal-Portfolio/', + build: { + assetsDir: 'assets', + outDir: 'dist', + assetsInlineLimit: 0, + rollupOptions: { + input: 'src/main.js', + output: { + entryFileNames: `assets/[name].js`, + chunkFileNames: `assets/[name].js`, + assetFileNames: `assets/[name].[ext]` + }, + }, + assetsInclude: ['favicon.ico', 'robots.txt', 'sitemap.xml'] + } })