sorrycc/awesome-javascript 21055
🐢 A collection of awesome browser-side JavaScript libraries, resources and shiny things.
dvajs/dva 15122
🌱 React and redux based, lightweight and elm-style framework. (Inspired by elm and choo)
oldj/SwitchHosts 10899
Switch hosts quickly!
ant-design/babel-plugin-import 2438
Modularly import plugin for babel.
🎉 整理我平时关注的前端库。
:beginner: Ant Design boilerplate generator.
reactjs/zh-hans.reactjs.org 377
React documentation website in Simplified Chinese
Continuous data provider for development, testing, staging and production. Just enjoy the data out-of-the-box.📦
Test framework to light up the world.
sorrycc/ama 29
Ask me anything!
issue commentumijs/umi
Why use process.env? process.env.NODE_ENV should have defined.
comment created time in 2 days
pull request commentumijs/umi
fix: resolve correct component and wrappers path in windows
👍
comment created time in 2 days
push eventumijs/umi
commit sha ef674b120c9a3188f0167a9fa2211d3cdbf60a21
fix: resolve correct component and wrappers path in windows (#5469)
push time in 2 days
PR merged umijs/umi
<!-- Thank you for your pull request. Please review the below requirements. Bug fixes and new features should include tests. Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md
感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试。 Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md -->
Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->
- [ ]
npm testpasses - [ ] tests are included
- [ ] documentation is changed or added
- [x] commit message follows commit guidelines
Description of change
<!-- Provide a description of the change below this comment. -->
- 修复在 windows 平台下 wrappers 的地址错误的情况
- close https://github.com/umijs/umi/issues/5401
pr closed time in 2 days
issue closedumijs/umi
[Bug] route.wrappers 在 windows 下存在问题
<!-- 感谢您向我们反馈问题,为了高效的解决问题,我们期望你能提供以下信息: -->
What happens?
- 在调试
dumi的时候,发现生成的.umi/core/routes.ts中存在异常数据,其中 wrappers 的路径异常如下
{
"path": "/",
"wrappers": [require('D:/projects/dumi/pages/D:/projects/dumi/packages/preset-dumi/lib/theme/layout').default
...
}
- 排查之后发现是在 windows 下给 route.wrapper 传绝对路径会被迫
join上root, 导致拿到了错误的路径信息 - 虽然可以通过传相对路径来规避该问题,但是我认为这肯定是一个bug
<!-- 清晰的描述下遇到的问题。-->
最小可复现仓库
- 问题简单不需要提供复现仓库了吧,看代码就能看出问题
思路
引用 Route.ts 的一段代码就可以看出来
if (route.wrappers) {
route.wrappers = route.wrappers.map((wrapper) => {
if (wrapper.startsWith('@/') || wrapper.startsWith('/')) {
return wrapper;
} else {
return winPath(join(opts.root, wrapper));
}
});
}
- 这里用
wrapper.startsWith('@/') || wrapper.startsWith('/')来判断是否为绝对路径不合理,我建议用path.isAbsolute来判断 - 如果是
Windows的绝对路径 比如D:\projects\xxx\xxx就会被迫join上root
相关环境信息
- Umi 版本:v3.2.20
- Node 版本:v12.16.2
- 操作系统:Windows
closed time in 2 days
mortalYoungpush eventumijs/umi
commit sha da41799939023193c2cb76695d1ddfc5f67f7576
Update README.md (#5470) Updated "front-line" to "front-end" developers
push time in 2 days
PR merged umijs/umi
Updated "front-line" to "front-end" developers
<!-- Thank you for your pull request. Please review the below requirements. Bug fixes and new features should include tests. Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md
感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试。 Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md -->
Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->
- [x]
npm testpasses - [x] tests are included
- [x] documentation is changed or added
- [x] commit message follows commit guidelines
Description of change
<!-- Provide a description of the change below this comment. -->
- any feature?
- close https://github.com/umijs/umi/ISSUE_URL
pr closed time in 2 days
issue closedumijs/umi
升级到umi 3.1.0 打包项目卡死,不知道为什么,哪位大佬给看下
<!--
感谢您向我们反馈问题,为了高效的解决问题,我们期望你能提供以下信息:
-->

升级到 umi3.1.0 把配置文件简化后就变成这样了
What happens?
<!-- 清晰的描述下遇到的问题。-->
最小可复现仓库
请使用
yarn create @umijs/umi-app创建,并上传到你的 GitHub 仓库
<!-- 为节约大家的时间,无复现步骤的 ISSUE 会被关闭,提供之后再 REOPEN --> <!-- https://github.com/YOUR_REPOSITORY_URL -->
复现步骤,错误日志以及相关配置
<!-- 请提供复现步骤,错误日志以及相关配置 --> <!-- 可以尝试不要锁版本,重新安装依赖试试先 -->
相关环境信息
- Umi 版本:
- Node 版本:
- 操作系统:
closed time in 2 days
XSmarterissue commentumijs/umi
Umi 3.x打包 dynamicImport 开启与否对打包结果影响很大
需要调整下 code splitting 策略,参考 https://umijs.org/guide/boost-compile-speed#%E8%B0%83%E6%95%B4-splitchunks-%E7%AD%96%E7%95%A5%EF%BC%8C%E5%87%8F%E5%B0%91%E6%95%B4%E4%BD%93%E5%B0%BA%E5%AF%B8 试试。
comment created time in 2 days
issue commentumijs/next-app
@xiaohuoni 如果优先级低,可以把仓库 archive 下。
comment created time in 2 days
push eventumijs/plugins
commit sha 7e278a121eaef4c008f0c1462bca5a4318e12245
chore(release): Publish - @umijs/[email protected] - @umijs/[email protected]
push time in 2 days
push eventumijs/plugins
commit sha 03320cc4203facea68b3a5212d7c73f9cde17c3e
dep(dva): upgrade dva-immer to 0.5 (#398) * dep(dva): upgrade dva-immer to 0.5 * chore: update yarn.lock
push time in 2 days
push eventumijs/plugins
commit sha ded6e7544b56ae9d36ae4b541a9090f230f2df47
chore: update yarn.lock
push time in 2 days
push eventdvajs/dva
commit sha 45dfa782c4e6f2854fe6e5c6f34fee1b0d6ef151
Publish - [email protected] - [email protected] - [email protected] - [email protected]
push time in 4 days
push eventdvajs/dva
commit sha 0546eba295056cf24f767d0075114a1cfff6adb7
feat: upgrade immer version to 7.x (#2380)
push time in 4 days
PR merged dvajs/dva
<!-- Thank you for your pull request. Please review below requirements. Bug fixes and new features should include tests. Contributors guide: https://github.com/dvajs/dva/blob/master/CONTRIBUTING.md
感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试。 Contributors guide: https://github.com/dvajs/dva/blob/master/CONTRIBUTING.md -->
Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->
- [x]
npm testpasses
Description of change
-
升级 immer 的版本到最新的 7.x,否则
import { original, isDraft } from 'immer'中导出的方法无法在 dva reducer 中使用(假设项目也是使用的 7.x 版本的 immer)。 -
重新生成根目录下的 yarn.lock,否则项目安装会失败,参考:https://github.com/nodejs/node/issues/27389
<!-- Provide a description of the change below this comment. -->
pr closed time in 4 days
push eventdvajs/dva
commit sha 792f32d7e3b643aa3f642e4b843c9aca2cce3330
chore: update ci (#2381)
push time in 4 days
PR merged dvajs/dva
<!-- Thank you for your pull request. Please review below requirements. Bug fixes and new features should include tests. Contributors guide: https://github.com/dvajs/dva/blob/master/CONTRIBUTING.md
感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试。 Contributors guide: https://github.com/dvajs/dva/blob/master/CONTRIBUTING.md -->
Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->
- [ ]
npm testpasses - [ ] tests are included
- [ ] documentation is changed or added
- [ ] commit message follows commit guidelines
Description of change
<!-- Provide a description of the change below this comment. -->
- any feature?
- close https://github.com/dvajs/dva/ISSUE_URL
pr closed time in 4 days
PR opened dvajs/dva
<!-- Thank you for your pull request. Please review below requirements. Bug fixes and new features should include tests. Contributors guide: https://github.com/dvajs/dva/blob/master/CONTRIBUTING.md
感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试。 Contributors guide: https://github.com/dvajs/dva/blob/master/CONTRIBUTING.md -->
Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->
- [ ]
npm testpasses - [ ] tests are included
- [ ] documentation is changed or added
- [ ] commit message follows commit guidelines
Description of change
<!-- Provide a description of the change below this comment. -->
- any feature?
- close https://github.com/dvajs/dva/ISSUE_URL
pr created time in 4 days
issue closedumijs/umi
约定式路由,未设置routes,pages下的页面除了index其他都不渲染
按照文档配置,.umirc.ts中未设置routes,在pages目录下新建页面,如下

访问/manage/emeter/realtime未渲染realtime页面内容,访问/可以正常渲染index页面
可复现demo https://github.com/qwe9527/umi-example.git
closed time in 4 days
qwe9527issue commentumijs/umi
约定式路由,未设置routes,pages下的页面除了index其他都不渲染
不是可以的吗?
comment created time in 4 days
issue closedumijs/umi
<!-- 感谢您向我们反馈问题,为了高效的解决问题,我们期望你能提供以下信息: -->
What happens?
<!-- 清晰的描述下遇到的问题。-->
如图所示,base只能是固定的字符串
实际应用场景中,应该经常存在动态参数的情况,是不是考虑支持一下动态参数的情况?
最小可复现仓库
请使用
yarn create @umijs/umi-app创建,并上传到你的 GitHub 仓库
<!-- 为节约大家的时间,无复现步骤的 ISSUE 会被关闭,提供之后再 REOPEN --> <!-- https://github.com/YOUR_REPOSITORY_URL -->
复现步骤,错误日志以及相关配置
<!-- 请提供复现步骤,错误日志以及相关配置 --> <!-- 可以尝试不要锁版本,重新安装依赖试试先 -->
相关环境信息
- Umi 版本:
- Node 版本:
- 操作系统:
closed time in 4 days
xiexingenissue commentumijs/umi
需要由服务端控制 html 输出,在 html 里输出不同的 base,然后切换时刷页面。
comment created time in 4 days
push eventumijs/umi
commit sha dc6f653c50756ff8abc3ab22d3ec69b29dfb2cb7
docs: update wechat's qrcode
push time in 4 days
created tagumijs/umi
🌋 Pluggable enterprise-level react application framework.
created time in 4 days
push eventumijs/umi
commit sha c1fb425b9125af6d3d34f6cdcfd5f3ac6aa8be57
release: v3.2.22
push time in 4 days
push eventumijs/umi
commit sha a5908e36523d570e868774f63702848ccc99d949
fix: dist regexp in windows os (#5462) * fix: windows bug in ignored watch files * fix: windows bug in ignored watch files« * chore: windows ci * chore: windows ci * chore: sep * chore: test * chore: console.log * chore: windows * chore: use anymatch in webpack * chore: format * chore: test * chore: anymatch Co-authored-by: pr <pr>
push time in 4 days
PR merged umijs/umi
<!-- Thank you for your pull request. Please review the below requirements. Bug fixes and new features should include tests. Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md
感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试。 Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md -->
ref: https://github.com/umijs/umi/issues/5416 Close https://github.com/umijs/umi/issues/5465 Close https://github.com/ant-design/ant-design-pro/issues/7381
Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->
- [x]
npm testpasses - [ ] tests are included
- [ ] documentation is changed or added
- [ ] commit message follows commit guidelines
Description of change
<!-- Provide a description of the change below this comment. -->
- any feature?
- close https://github.com/umijs/umi/ISSUE_URL
pr closed time in 4 days
issue closedant-design/ant-design-pro
实验项目均为重新按照官方文档流程新建立的,而不是老项目。 SyntaxError: Invalid regular expression: /(node_modules|D:\workspace\antTest\dist)/: Unterminated group at new RegExp (<anonymous>) at Bundler.setupDevServerOpts (D:\workspace\antTest\node_modules_@[email protected]@@umijs\bundler-webpack\lib\index.js:150:69)
经定位是上述index.js中正则拼接的错误,代码片段:
watchOptions: {
// not watch outputPath dir and node_modules
ignored: process.env.WATCH_IGNORED === 'none' ? undefined : new RegExp(process.env.WATCH_IGNORED || (node_modules|${absOutputPath}${_path().sep}))
}
由于${absOutputPath}${_path().sep}=D:\workspace\antTest\dist\中存在\特殊字符,导致生成正则错误,如果只针对开发,可以将后续拼接删除或者变成${absOutputPath}${_path().sep}.*,但觉得不妥,想问问有遇到这个问题的吗,如何解决。
closed time in 4 days
xinyouhunranissue closedumijs/umi
What happens?
如题
Mini Showcase Repository(REQUIRED)
用 yarn create umi 选取ant-design-pro 模板, 直接运行报错
<!-- https://github.com/YOUR_REPOSITORY_URL -->
How To Reproduce
npm start
Context
报错信息: Invalid regular expression: /(node_modules|D:\WorkSpace\front\admin\dist)/: Unterminated group SyntaxError: Invalid regular expression: /(node_modules|D:\WorkSpace\front\admin\dist)/: Unterminated group at new RegExp (<anonymous>) at Bundler.setupDevServerOpts (D:\WorkSpace\front\admin\node_modules@umijs\bundler-webpack\lib\index.js:148:69) at D:\WorkSpace\front\admin\node_modules@umijs\preset-built-in\lib\plugins\commands\dev\dev.js:269:30 at Generator.next (<anonymous>) at asyncGeneratorStep (D:\WorkSpace\front\admin\node_modules@umijs\preset-built-in\lib\plugins\commands\dev\dev.js:74:103) at _next (D:\WorkSpace\front\admin\node_modules@umijs\preset-built-in\lib\plugins\commands\dev\dev.js:76:194)
- Umi Version: ^3.2.14
- Node Version: v12.18.4
- Platform: Windows10
closed time in 4 days
MrCx0810issue closedumijs/umi
umi@3 启用SPEED_MEASURE后 umi dev 报错
What happens?
set SPEED_MEASURE=JSON&& umi dev :启用 SPEED_MEASURE后 dev报错,试了两个项目,
第一个项目如果不使用copy,就没有问题,而且就算使用了copy,虽然有报错但是却不会导致中断;
第二个项目会直接中断


情况应该与https://github.com/umijs/umi/issues/4430 相同
- Umi Version: 3.1.0
- Node Version: 10.15.3
- Platform: windows
closed time in 4 days
NexxLuoPull request review commentumijs/umi
fix: dist regexp in windows os
class Bundler { }); } + /**+ * get ignored watch dirs regexp, for test case+ */+ getIgnoredWatchRegExp = (): undefined | RegExp => {+ const { outputPath } = this.config;+ console.log('this.cwd', this.cwd);
console.log 删了。
comment created time in 4 days
push eventumijs/plugins
commit sha b16c427567ec10c6270b8194e5162229d13bb767
chore(release): Publish - @umijs/[email protected]
push time in 4 days
push eventumijs/plugins
commit sha c679b30425bde3e1274efca5b8051861c578a026
fix(qiankun): no cjs require, use umiExports.MicroApp (#395)
push time in 4 days
PR merged umijs/plugins
- MicroApp 和 React 不使用 cjs 的方式引入,cjs 会影响提速方案的实施
- 相关 pr: https://github.com/umijs/umi/pull/5456
- 依赖 [email protected](已发布)
- packages/plugin-qiankun/examples 下的例子已验证
pr closed time in 4 days
PR opened umijs/plugins
- MicroApp 和 React 不使用 cjs 的方式引入,cjs 会影响提速方案的实施
- 相关 pr: https://github.com/umijs/umi/pull/5456
- 依赖 [email protected](已发布)
- packages/plugin-qiankun/examples 下的例子已验证
pr created time in 4 days
push eventumijs/umi
commit sha 20bbce43387c1deb2e25b2efd4af4867e4fc8e71
optimize: 仅 runtimeHistory 开启时才导出 setCreateHistoryOptions 和 getCreateHistoryOptions 方法 (#5461)
push time in 4 days
PR merged umijs/umi
<!-- Thank you for your pull request. Please review the below requirements. Bug fixes and new features should include tests. Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md
感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试。 Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md -->
Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->
- [ ]
npm testpasses - [ ] tests are included
- [ ] documentation is changed or added
- [ ] commit message follows commit guidelines
Description of change
<!-- Provide a description of the change below this comment. -->
- any feature?
- close https://github.com/umijs/umi/ISSUE_URL
<!-- Reviewable:start -->
This change is <img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/> <!-- Reviewable:end -->
pr closed time in 4 days
created tagumijs/umi
🌋 Pluggable enterprise-level react application framework.
created time in 4 days
push eventumijs/umi
commit sha dc0f87b9e400b420c97b27ef4c595c6cb48ce456
release: v3.2.21
push time in 4 days
push eventumijs/umi
commit sha 38946ff744f9acf95827e975ea09860be580f0e0
feat: export umiExports and React in core/routes.ts (#5456) * refactor: export umi in core/routes.ts * fix: testcase * chore: export react
push time in 4 days
PR merged umijs/umi
<!-- Thank you for your pull request. Please review the below requirements. Bug fixes and new features should include tests. Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md
感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试。 Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md -->
Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->
- [ ]
npm testpasses - [ ] tests are included
- [ ] documentation is changed or added
- [ ] commit message follows commit guidelines
Description of change
<!-- Provide a description of the change below this comment. -->
- any feature?
- close https://github.com/umijs/umi/ISSUE_URL
pr closed time in 4 days
push eventumijs/umi
commit sha f692219a05b0524462f64cf4fb6f242c7193c8ac
feat: add getCreateHistoryOptions api to get runtime history options (#5457) * feat: add getCreateHistoryOptions api to get runtime history options * chore: typo
push time in 4 days
PR merged umijs/umi
<!-- Thank you for your pull request. Please review the below requirements. Bug fixes and new features should include tests. Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md
感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试。 Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md -->
Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->
- [ ]
npm testpasses - [ ] tests are included
- [ ] documentation is changed or added
- [ ] commit message follows commit guidelines
Description of change
<!-- Provide a description of the change below this comment. -->
- any feature?
- close https://github.com/umijs/umi/ISSUE_URL
<!-- Reviewable:start -->
This change is <img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/> <!-- Reviewable:end -->
pr closed time in 4 days
push eventumijs/umi
commit sha 1c042ba5b7c2c82b5c8ece39c3ddd2937ec0669c
chore: export react
push time in 4 days
push eventumijs/umi
commit sha 0ff4766f620a6eef080a62a94c10e254f4eb2e1c
fix: testcase
push time in 4 days
push eventumijs/umi
commit sha 686e0031bd01e0e5f84676ebfacef1a320ccac32
fix: dev's exit code when Service init failed (#4983)
push time in 4 days
PR merged umijs/umi
<!-- Thank you for your pull request. Please review the below requirements. Bug fixes and new features should include tests. Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md
感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试。 Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md -->
Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->
- [ ]
npm testpasses - [ ] tests are included
- [ ] documentation is changed or added
- [ ] commit message follows commit guidelines
Description of change
<!-- Provide a description of the change below this comment. -->
- any feature?
- close https://github.com/umijs/umi/ISSUE_URL
pr closed time in 4 days
PR opened umijs/umi
<!-- Thank you for your pull request. Please review the below requirements. Bug fixes and new features should include tests. Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md
感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试。 Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md -->
Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->
- [ ]
npm testpasses - [ ] tests are included
- [ ] documentation is changed or added
- [ ] commit message follows commit guidelines
Description of change
<!-- Provide a description of the change below this comment. -->
- any feature?
- close https://github.com/umijs/umi/ISSUE_URL
pr created time in 4 days
push eventumijs/umi
commit sha 1c011f2540fce47145a1e87c4ba54b5f18336e6c
refactor: export umi in core/routes.ts
push time in 4 days
push eventumijs/umi
commit sha cdb2f14df61fc9ce7174356901011bde549eb5f9
docs: update banner image
push time in 5 days
startedjean-smaug/babel-plugin-search-and-replace
started time in 5 days
PR merged umijs/umi
<!-- Thank you for your pull request. Please review the below requirements. Bug fixes and new features should include tests. Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md
感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试。 Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md --> 更新 [email protected]。 由于 patterns 不能是一个空数组,所以改成按需引入。
Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->
- [x]
npm testpasses - [ ] tests are included
- [ ] documentation is changed or added
- [ ] commit message follows commit guidelines
Description of change
<!-- Provide a description of the change below this comment. -->
Close: https://github.com/umijs/umi/issues/5208
pr closed time in 5 days
issue closedumijs/umi
What happens?
Installing umi gives security vulnerability:

How To Reproduce
Steps to reproduce the behavior:
npx @umijs/create-umi-app
npm install
Expected behavior: No "found 1 high security vulnerability"
Context
- Umi Version: 3.2.14
- Node Version: 14.7.0
- Platform: Linux
Solution
Upgrade copy-webpack-builder to 6.0.3:
https://github.com/umijs/umi/blob/master/packages/bundler-webpack/package.json#L37
Note: Possible breaking changes: https://github.com/webpack-contrib/copy-webpack-plugin/releases/tag/v6.0.0
closed time in 5 days
MatthewScholefieldpull request commentumijs/umi
feat: update [email protected]
补下用例,在现有 fixtures/copy 的基础上,加个 { from, to } 的例子
comment created time in 5 days
startedairbnb/ts-migrate
started time in 5 days
issue closedumijs/umi
函数组件国际化可以使用useIntl,在class组件中国际化应该怎么做呢?
<!-- 感谢您向我们反馈问题,为了高效的解决问题,我们期望你能提供以下信息: -->
What happens?
函数组件国际化可以使用useIntl,在class组件中国际化应该怎么做呢?
相关环境信息
- **Umi 版本3.2.9:
- **Node 版本12:
- **操作系统win2019:
closed time in 8 days
effappissue commentumijs/umi
函数组件国际化可以使用useIntl,在class组件中国际化应该怎么做呢?
改成 Function 的方式。
comment created time in 8 days
issue closedumijs/umi
覆盖antd-mobile样式失败 src/global.less 下全局样式无法覆盖antd-mobile样式
检查元素看到全局样式文件被划掉了,应该是引入样式顺序问题,没能成功覆盖antd-mobile样式
closed time in 8 days
userhjpissue commentumijs/umi
覆盖antd-mobile样式失败 src/global.less 下全局样式无法覆盖antd-mobile样式
加载有先后,通过调整权重的方式覆盖吧。
comment created time in 8 days
issue commentumijs/umi
热更新慢是因为依赖多,参考 https://umijs.org/zh-CN/guide/boost-compile-speed 这里的方式优化下。
comment created time in 8 days
issue closedumijs/umi
使用ant design pro v5 , yarn start 后无法热刷新,只能修改一个地方,重新yarn start
closed time in 8 days
wowtrxqnpull request commentumijs/umi
feat: update [email protected]
前面的格式乱了,加空格是故意的,还在前面加了 // prettier-ignore,为啥你的工具会做这个格式化?
comment created time in 8 days
pull request commentumijs/umi
feat: update [email protected]
有冲突,merge 下 master。
comment created time in 9 days
Pull request review commentumijs/umi
feat: update [email protected]
export default async function getConfig( } // copy- webpackConfig.plugin('copy').use(require.resolve('copy-webpack-plugin'), [- [- existsSync(join(cwd, 'public')) && {- from: join(cwd, 'public'),- to: absOutputPath,- },- ...(config.copy- ? config.copy.map((from) => ({- from: join(cwd, from),+ if (existsSync(join(cwd, 'public')) || config.copy) {
const copyPatterns = ...; if (copyPatterns.length) { webpackConfig.plugin('copy').use(...) }
换成这样简单点。
comment created time in 9 days
push eventumijs/umi
commit sha d6b8fc0ebe794773cf2776dff6feabc0ce311c8c
feat: copy config support from-to (#5440) * feat: copy config support from-to * docs: config copy docs * fix: type error
push time in 9 days
PR merged umijs/umi
<!-- Thank you for your pull request. Please review the below requirements. Bug fixes and new features should include tests. Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md
感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试。 Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md -->
Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->
- [x]
npm testpasses - [x] tests are included
- [ ] documentation is changed or added
- [ ] commit message follows commit guidelines
Description of change
<!-- Provide a description of the change below this comment. -->
- any feature? Close: https://github.com/umijs/umi/issues/5277
pr closed time in 9 days
issue closedumijs/umi
What happens?
文件 .umirc.ts 的 copy 命令,以前 都支持 form/to 用的挺好的,后来改为了 只允许 string; 那么问题来了: 加入需求是:把文件夹 /src/resource 复制到 /dist , 根据帮助文档,应该写: copy: [ './src/resource', // 尝试了 './src/resource/' 效果一样 ], 但是,无论是 npm run start,还是 npm run build,复制过得的文件夹,丢了 resource ,会把里面的子文件全部复制到根目录; 难道我 需要文件:/dist/resource/* 我需要搞一个 /src/resource/resource 才可以???
相关环境信息
- Umi 版本: "umi": "^3.2.16",
- Node 版本:node 12
- 操作系统: mac
closed time in 9 days
block-sexypull request commentumijs/umi
feat: copy config support from-to
看下用例为啥挂了?
comment created time in 9 days
push eventumijs/plugins
commit sha a5e823f356ef9f7c7f3d26192e6439a5254168cf
chore(release): Publish - @umijs/[email protected] - @umijs/[email protected] - @umijs/[email protected]
push time in 9 days
push eventumijs/plugins
commit sha ba7d20c41d6d2176c216fb82a7cba9298646ee08
fix(locale): import order problem (#369)
push time in 9 days
issue commentumijs/umi
试试这个,https://umijs.org/guide/boost-compile-speed#%E6%9B%BF%E6%8D%A2%E5%8E%8B%E7%BC%A9%E5%99%A8%E4%B8%BA-esbuild
comment created time in 9 days
startedyyx990803/vue-lit
started time in 10 days
startedbansal/filters.css
started time in 10 days