crixusshen
crixusshen
由于使用taro框架一般都会使用taro-ui来提供双线程组件的需求,但是taro-ui在h5端打包的时候,确实使用了dist目录下的全量脚本,从package.json的main就能看出。但是毕竟h5端的需求量还是很大,也有很多团队会使用taro来编写h5端的需求,因此在h5端上进行taro-ui的全量脚本导出会显得那么的“笨拙”。因此需要提供一个“按需加载”的思路,而前端应用层代码依然是从taro-ui命名空间进行使用,以下是我的解决方案,官方可参考是否可在NEXT版本中进行优化。 这个功能解决了什么问题? 解决并提供taro-ui按需加载的问题,同时应用层的代码还是通过taro-ui进行导入导出。 你期望的功能是怎样的? 无需使用接下去的解决方案来解决,最好官方能天然的进行支持。 补充信息 1. 安装 babel-plugin-import 插件: ```javascript cnpm i babel-plugin-import --save-dev ``` 2. 在根目录下的 babel.config.js 中进行如下配置: ```javascript const tail = require("lodash/tail"); module.exports = { presets: [...
基金,股票分组支持,状态栏内的标的缺少恒生指数这个标的
### 这个功能解决了什么问题? 由于modern涉及到运维服务器这部分,对开发者而言比较黑盒,但是它确实非常重要的一块。想咨询下如果要进行私有化本地服务器部署,在集群上有什么建议和方案,可以实现高并发高可用? ### 你期望的 API 是什么样子的? 同上
### 版本信息 ```sh └── @modern-js/[email protected] -> ./node_modules/.pnpm/@[email protected]_c9c9c4f27a142d183a7a609b21611aec/node_modules/@modern-js/app-tools ``` ### 问题详情 更新最新版本1.6.4后,如果modern.config.ts中配置了server.ssrByEntries,会报如下的错误信息,之前的版本是好的:  ### 复现链接 https://github.com/crixusshen/modern-bug.git ### 复现步骤 1. pnpm i 2. 打开 modern.config.ts 中 ssrByEntries 部分的注释 3. pnpm run dev
感觉每次依赖平台的依赖性太大了,还是用最原始的样式引入字体的方式来实现吧
如题,或者在其它仓库能否给个地址
为什么postcss-aspect-ratio-mini和postcss-px-to-viewport使用的是固定版本,不是最新的版本,是存在兼容性问题还是其它问题?
I already upgraded lastest MACOS 10.12, but gitbook-plugin-mermaid isnot used normally. Please help me.
"Autoprefixer's process() method is deprecated and will removed in next major release. Use postcss([autoprefixer]).process() instead" I execute the command, console will appear after this warning, I have not found the...
I currently have a user table, a role table, and the relationship between users and roles is many-to-many, so there is a middle table of user_role. How to configure it...