mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-04-15 11:37:24 +08:00
fix: error when serving
This commit is contained in:
parent
1556e2c3ea
commit
b3d5ad2ca9
@ -16,6 +16,7 @@
|
||||
"dependencies": {
|
||||
"@motajs/render": "workspace:*",
|
||||
"@motajs/common": "workspace:*",
|
||||
"@motajs/client": "workspace:*",
|
||||
"@ant-design/icons-vue": "^6.1.0",
|
||||
"@emotion/css": "^11.13.0",
|
||||
"@vueuse/core": "^10.11.1",
|
||||
|
@ -6,7 +6,7 @@ import vuejsx from '@vitejs/plugin-vue-jsx'
|
||||
import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers';
|
||||
import path, { resolve } from 'path';
|
||||
import postcssPresetEnv from 'postcss-preset-env';
|
||||
import glob from 'glob'
|
||||
import * as glob from 'glob'
|
||||
|
||||
const FSHOST = 'http://127.0.0.1:3000/';
|
||||
|
||||
@ -44,11 +44,17 @@ export default defineConfig({
|
||||
],
|
||||
base: `./`,
|
||||
resolve: {
|
||||
alias: {
|
||||
alias: [
|
||||
...aliases,
|
||||
'@': resolve(__dirname, './src'),
|
||||
'@ui': resolve(__dirname, './src/ui')
|
||||
}
|
||||
{
|
||||
find: '@',
|
||||
replacement: resolve(__dirname, './src')
|
||||
},
|
||||
{
|
||||
find: '@ui',
|
||||
replacement: resolve(__dirname, './src/ui')
|
||||
}
|
||||
]
|
||||
},
|
||||
build: {
|
||||
rollupOptions: {
|
||||
|
Loading…
Reference in New Issue
Block a user