feat: 新增背景音乐功能
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
|
||||
import path from 'path' // 新增:引入path模块
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
resolve: { // 新增:配置路径别名
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, 'src') // 让@代表项目根目录下的src文件夹
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user