完成对app-shared 的拆分
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user