serve --port 9002",
}
}
启动应用: npm start
3-3-2 注册应用
将 React 项目的入口文件注册到基座应用 (容器应用) 中
\container\src...config=>{
// 配置不打包 Vue 及 vue-router
config.externals(["vue","vue-router"])
}
}
修改项目启动命令...:standalone": "vue-cli-service serve --mode standalone"
},
注册应用:micro\container\src\study-root-config.js...contentBase: path.join(__dirname, 'dist'),
port: 3000,
open: true
},
}
package.json 启动命令...",
"serve": "serve dist -p 3001",
"build": "webpack --mode production",
"clean": "rm -rf