edbf78f236
- Halo Plugin 后端(Java/Gradle),含 DarkModePlugin 主类和测试 - Vue 3 + TypeScript 前端 UI,包含主题切换组件和设置页面 - 暗色模式 CSS 变量和覆盖样式(布局/编辑器/表单/滚动条等) - 设计文档和调查文档 - Halo 插件/主题开发 Agent Skills Co-Authored-By: Claude <noreply@anthropic.com>
26 lines
735 B
TypeScript
26 lines
735 B
TypeScript
import { fileURLToPath, URL } from 'url'
|
|
|
|
import { viteConfig } from '@halo-dev/ui-plugin-bundler-kit'
|
|
import Icons from 'unplugin-icons/vite'
|
|
import { configDefaults } from 'vitest/config'
|
|
|
|
// For more info,
|
|
// please see https://github.com/halo-dev/halo/tree/main/ui/packages/ui-plugin-bundler-kit
|
|
export default viteConfig({
|
|
vite: {
|
|
plugins: [Icons({ compiler: 'vue3' })],
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
},
|
|
},
|
|
|
|
// If you don't use Vitest, you can remove the following configuration
|
|
test: {
|
|
environment: 'jsdom',
|
|
exclude: [...configDefaults.exclude, 'e2e/**'],
|
|
root: fileURLToPath(new URL('./', import.meta.url)),
|
|
},
|
|
},
|
|
})
|