feat: 加了扫雷小游戏

This commit is contained in:
camera-2018
2023-08-19 03:59:15 +08:00
parent 6d24624a3d
commit 41f078c902
8 changed files with 2042 additions and 16 deletions

View File

@@ -5,6 +5,8 @@ import { main_sidebar, chapter2, chapter3, chapter4, chapter5, chapter6, chapter
import { nav } from './nav.js';
import PanguPlugin from 'markdown-it-pangu'
import { fileURLToPath, URL } from 'node:url'
import VueMacros from 'unplugin-vue-macros/vite'
import Vue from '@vitejs/plugin-vue'
const customElements = [
'mjx-container',
@@ -152,11 +154,15 @@ export default withMermaid({
isCustomElement: (tag) => customElements.includes(tag),
},
},
},
sitemap: {
hostname: 'https://hdu-cs.wiki'
},
vite: {
plugins: [
VueMacros(),
],
resolve: {
alias: [
{
@@ -164,6 +170,12 @@ export default withMermaid({
replacement: fileURLToPath(
new URL('./components/CustomSwitchAppearance.vue', import.meta.url)
)
},
{
find: /^.*\/NotFound\.vue$/,
replacement: fileURLToPath(
new URL('./components/CustomNotFound.vue', import.meta.url)
)
}
]
}