mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-24 23:56:51 +00:00
Add sitemap to build
This commit is contained in:
@@ -3,6 +3,7 @@ import preact from '@preact/preset-vite'
|
||||
import html from '@rollup/plugin-html'
|
||||
import config from './src/config.json'
|
||||
import { env } from 'process'
|
||||
import copy from 'rollup-plugin-copy'
|
||||
|
||||
export default defineConfig({
|
||||
build: {
|
||||
@@ -19,6 +20,12 @@ export default defineConfig({
|
||||
title: getTitle(m),
|
||||
template: template,
|
||||
})),
|
||||
copy({
|
||||
targets: [
|
||||
{ src: 'src/sitemap.txt', dest: 'dist' }
|
||||
],
|
||||
hook: 'writeBundle'
|
||||
})
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user