ViperWebSite 原被 SMANAGE 主仓 .gitignore 排除,现拆为独立仓库并接入 git.gvsds.com/GVSDS/ViperWebSite。 包含:Vue 3 + TS + Vite 官网源码(首屏巨字滚动飞行 / Features 卡片鼠标跟随光晕 / 跨 section 背景融合)、Lenis 平滑惯性滚动、暗黑模式(属性驱动 + 变量覆盖 + 防闪白)、deploy.ps1 部署脚本、.gitignore。
24 lines
470 B
TypeScript
24 lines
470 B
TypeScript
import { defineConfig } from 'vite'
|
|
import { fileURLToPath, URL } from 'node:url'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
},
|
|
},
|
|
server: {
|
|
host: '0.0.0.0',
|
|
port: 5175,
|
|
},
|
|
build: {
|
|
outDir: 'dist',
|
|
sourcemap: false,
|
|
chunkSizeWarningLimit: 1500,
|
|
cssCodeSplit: false,
|
|
},
|
|
})
|