{title:'vite1',appName:'appname-vite1',route:'/app-vite1',children: [ {title:'home',route:'/app-vite1/home',hashName:'home',isShow:true}, {title:'page2',route:'/app-vite1/page2',hashName:'page2',isShow:true} ] } ]exportconstrouteNameList = menuList.map((item) =>item.r...
入口文件main.js,映入微前端引擎micro-app启动微前端。此处的loader的作用是因为vite开发模式下引入的资源是相对路径,但是子应用也是vite的情况下,主应用加载资源的时候就会以主应用为域名去加载,加载不到子应用的资源,所以无法执行;需要处理子应用静态资源,写一个简易的插件,对开发环境的子应用进行处理,补全静态...
npm i @micro-zoe/micro-app --save 1. 2. 导入并启用微前端框架 microApp src/main.ts AI检测代码解析 import microApp from '@micro-zoe/micro-app' microApp.start() 1. 2. 3. 3. 添加配置 vite.config.ts 的 vue 中添加配置 AI检测代码解析 vue({ template: { compilerOptions: { isCustomEle...
importmicroAppfrom'@micro-zoe/micro-app';microApp.start({plugins:{modules:{// 此处的appname-vite必须和 <micro-app name='appname-vite' url="http://localhost:5001/vite-vue3-ts/"></micro-app> 一致'appname-vite':[{// loader的作用是因为vite开发模式下引入的资源是相对路径,但是子应用也是vi...
更新microapp版本 7个月前 s.yml config 8个月前 vite.config.js 中转路由, MicroApp组件封装 8个月前 yarn.lock vite模版项目 2年前 README Vue 3 + Vite Recommended IDE Setup Vue 3 + Vite This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3SFCs...
1、子工程修改路由 const router = new VueRouter({ mode: 'history', base: window.__MICRO_APP_BASE_ROUTE__ || '/', routes }); 2、子工程配置跨域,在vue.config.js中 devServer: { headers: { 'Access-Control-Allow-Origin': '*', }, port: port, open: true, overlay: { warnings: fals...
Micro App react16应用 react17应用 vue2应用 vue3应用 vite应用 angular11应用 多个应用 自带页面Serati Ma 发送数据 Hello Vue 3 + Vite Vite Documentation | Vue 3 Documentationcount is: 0 Edit components/HelloWorld.vue to test hot module replacement. Go to page2...
+VITE_APP_TITLE=MainApp + +# 是否全量引入 element-plus 样式 +VITE_USE_ALL_ELEMENT_PLUS_STYLE= false + +# 是否开启mock +VITE_USE_MOCK=false + +# 是否使用在线图标 +VITE_USE_ONLINE_ICON=false + +# 是否使用 micro-app +VITE_USE_MICRO_APP=false + +# 是否使用多语言 +VITE_MULTIPLE_...
forked fromcgb-micro-frontend/micro-app NotificationsYou must be signed in to change notification settings Fork0 Star0 Code Pull requests Actions Projects Security Insights Additional navigation options Commit Browse filesBrowse the repository at this point in the history ...
routes:[]})app.use(router)//注册子应用registerMicroApps([{name:'vue-app',//子应用名称entry:...