ClarkXia

Results 290 comments of ClarkXia

如果本地调试,可以设置 publicPath,线上发布理论上都会被替换成 cdn 地址的

关注 loadScriptMode 设置 https://micro-frontends.ice.work/docs/api/ice-stark/#loadscriptmode- vite 构建的产物需要用 import 的方式加载

*.d.ts 由 ts 编译生成,一般在编译 es / lib 目录时会生成,在消费 umd 的时候是不需要的

我们近期通过插件支持下

vite-plugin-index-html 代码参考 https://github.com/alibaba/ice/tree/stable/2.x/packages/vite-plugin-index-html

webpackDevServer 实际使用的版本过高