完成对app-shared 的拆分

This commit is contained in:
编码猿
2025-09-18 04:12:50 +08:00
parent 327e80d71e
commit cc23a6e1f0
12 changed files with 43 additions and 39 deletions

View File

@@ -6,10 +6,10 @@
"author": "",
"license": "ISC",
"scripts": {
"dev": "vite --port 5555 --strictPort",
"build": "vite build",
"serve": "vite preview --port 5555 --strictPort",
"all": "npm run build && npm run serve"
"dev": "concurrently \"npm run build\" \"npm run serve\"",
"serve": "vite preview --port 1333 --strictPort",
"build": "vite build --watch",
"type-check": "vue-tsc --build"
},
"dependencies": {
"axios": "^1.12.2"

View File

@@ -3,6 +3,11 @@ import federation from '@originjs/vite-plugin-federation';
// https://vite.dev/config/
export default defineConfig({
server: {
port: 1333,
host: '0.0.0.0',
strictPort: true,
},
plugins: [
federation({
name: 'shared',