Skip to content

Commit

Permalink
sitemap test
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzopalaia committed Dec 7, 2023
1 parent 12179b9 commit 9e9c656
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="sitemap" href="sitemap.xml" />
<link rel="shortcut icon" href="/Personal-Portfolio/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" sizes="180x180" href="/Personal-Portfolio/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/Personal-Portfolio/favicon-32x32.png">
Expand Down
16 changes: 15 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']
}
})

0 comments on commit 9e9c656

Please sign in to comment.