ice-lab / icejs

仓库迁移至:https://github.com/alibaba/ice
https://ice.work/docs/guide/intro
MIT License
75 stars 16 forks source link

build-plugin-fusion 在设置多主题的时候 编译时icon报错 #165

Closed a188658587 closed 4 years ago

a188658587 commented 4 years ago

{ "entry": "src/index", "alias": { "@": "./src" }, "publicPath": "./", "vendor": false, "plugins": [ "build-plugin-ice-app", [ "build-plugin-fusion", { "themePackage": [ { "name": "@alifd/theme-design-pro", "default": true }, { "name": "@alifd/theme-12074" } ], "uniteBaseComponent": "@alife/next", "themeConfig": { "nextPrefix": "next-" } } ], "build-plugin-fusion-material", ["build-plugin-css-assets-local", { "outputPath": "assets", "relativeCssPath": "./" }], "./build.plugin.js" ] }

在设置多主题的时候 编译时icon报错。看源码发现 多主题处理哪里有点问题。主题处理了,icon没有处理。 希望可以解决一下。

info 已启用 themePackage 多主题功能
info uniteBaseComponent 开启,基础包统一到: @alife/next
10% buildingℹ 「wds」: Project is running at http://0.0.0.0:3333/
ℹ 「wds」: webpack output is served from /
ℹ 「wds」: Content not from webpack is served from /Users/wanglin/project/react-iceDesignTs

info WEBPACK Starting the development server at:
info - Local : http://localhost:3333/
info - Network: http://192.168.31.17:3333/

92% chunk asset optimization[WARNING]: 编译 Icon 出错,构建继续。错误详细信息: Error: Undefined variable: "$css-prefix".
ClarkXia commented 4 years ago

build-plugin-fusion@0.1.1 版本已修复