chore: 全量提交(推广页、宣传册、社交资源、视频与后台同步)
Made-with: Cursor
This commit is contained in:
@@ -1,9 +1,19 @@
|
||||
import path from 'node:path'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
base: '/admin/',
|
||||
resolve: {
|
||||
alias: {
|
||||
// 与前台共用积木渲染,避免重复维护
|
||||
'@yh-web': path.resolve(__dirname, '../web/src')
|
||||
}
|
||||
},
|
||||
server: {
|
||||
port: 3000,
|
||||
host: true,
|
||||
|
||||
Reference in New Issue
Block a user