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