icestark icon indicating copy to clipboard operation
icestark copied to clipboard

:tiger: Micro Frontends solution for large application(面向大型应用的微前端解决方案),站点国内镜像:https://icestark.gitee.io

Results 159 icestark issues
Sort by recently updated
recently updated
newest added

**问题:** 1. 使用微模块脚手架进行微模块组件编码,使用自定义的Fusion主题包,主题包中包含自定义的Icon图标,在组件js中引用该图标; ![image](https://github.com/ice-lab/icestark/assets/70733795/7b1b174a-0b4f-49f5-800e-78596fc0519c) 2. 通过modules形式分包构建该组件,打包后查看build/组件名/index.scss,其中缺少icon图标:before样式; ![image](https://github.com/ice-lab/icestark/assets/70733795/eea59cad-b9dd-417b-be48-b8fe3d62de78) 3. 通过主应用调用形式加载组件的js和css,加载后图标无法显示,icon没有:before样式; ![image](https://github.com/ice-lab/icestark/assets/70733795/f1b5e904-012f-4775-a181-2bdfb4795167) 5. 查看组件的build文件夹,发现IP_legend_icon_gateway样式在build/index.css中,而不在build/组件目录/index.css中,实际在工程使用中不会引用build/index.css; ![image](https://github.com/ice-lab/icestark/assets/70733795/7de8f1a9-f772-4af2-a10f-d2c71a4aeca9) **期望** 1. 期望在分包打包后,样式能够全部打到build/组件目录/index.css中,不丢失样式; **延申** 1. 测试发现如果在build.json中不适用modules形式做分包加载,直接打包时,在产物build/index/index.css中样式是全的,其中包含了IP_legend_icon_gateway图标的:before样式; 2. 怀疑可能是build-plugin-stark-module插件在modules下存在的问题;

在[这里](https://github.com/ice-lab/icestark/blob/2289f2551651c111e6d1963e4c987d7acf7df845/packages/icestark/src/start.ts#L34)保存了原始的pushState、replaceState,而包装的时机是调用[hijackHistory](https://github.com/ice-lab/icestark/blob/2289f2551651c111e6d1963e4c987d7acf7df845/packages/icestark/src/start.ts#L94),这中间如果有其它代码对pushState、replaceState做了其它hook,这部分hook逻辑就在hijackHistory里被覆盖掉 应该在hijackHistory时使用最新的pushState、replaceState

主应用和子应用都是vite 菜单为动态菜单 点击子应用的菜单会出现重新渲染菜单

**Do you want to request a *feature* or report a *bug*?** feature **What is the current behavior?** 正常会出现 然后如果是这样可以成功 ``` fetch("https://htsy.cpshelp.cn/client-modules/setting/runtime.json?v=1684313213887", { "headers": { "accept": "*/*", "accept-language": "zh-CN", "sec-ch-ua": "\"Not...

![image](https://user-images.githubusercontent.com/27402920/236595561-063819f4-6ce0-4996-b2b2-4c05b2c0afef.png) umd产物不对,是哪里配置有问题吗? ![image](https://user-images.githubusercontent.com/27402920/236595602-aa5b426d-3ad5-4a88-af0b-39797cf1125a.png) ![image](https://user-images.githubusercontent.com/27402920/236595623-7de36d91-1bb1-47b5-8a37-d89332bd830d.png)

使用文档提供vue 主应用/子应用进行本地安装 ``` npm init ice icestark-layout @vue-materials/icestark-layout-app //主应用 npm init ice icestark-child @vue-materials/icestark-child-app //子应用 ``` 在主应用点击相应3个子应用菜单后,点击浏览器回退按钮 回退路由不对

bug

**问题**:mountModule加载微模块时runtime是否可支持import导入的三方库 **期望的类似效果**: import axios from 'axios'; import { mountModule, unmoutModule } from '@ice/stark-module'; const moduleInfo = { name: 'moduleName', url: 'https://localhost/module.js', runtime: [ { id: 'axios', url: axios } ],...

**Do you want to request a *feature* or report a *bug*?** Feature **What is the current behavior?** 我想在微模块里用tailwindCss 但是我不知道在哪里添加 **If the current behavior is a bug, please provide the steps...

**Do you want to request a *feature* or report a *bug*?** **What is the current behavior?** 通过脚手架生成的子应用,在路由发生变化之后会多次触发 `mount` 、`unmount` 生命周期 **If the current behavior is a bug, please provide the...

**Do you want to request a *feature* or report a *bug*?** bug **What is the current behavior?** ``` > @cool-qi-client/[email protected] start > build-scripts start build-scripts 1.3.0 10% buildingi 「wds」: Project...