Skip to content

Commit

Permalink
Auto commit: 2024-09-15 16:20:32
Browse files Browse the repository at this point in the history
  • Loading branch information
samlau7245 committed Sep 15, 2024
1 parent 3441a70 commit 31ccee0
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions blog/2024-09-14-umi-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@
[1](https://www.jianshu.com/p/83703a6a0865)
[升级到UMI4的适配方案](https://juejin.cn/post/7273803674789527591)

```
Error parsing bundle asset "/Users/xxx/dist/xxx.async.js": no such file
```

## 升级到 Umi 4

```
info - [你知道吗?] 如果要支持低版本浏览器,可尝试新出的 legacy 配置项,详见 https://umijs.org/blog/legacy-browser
Mako https://makojs.dev is a new fast Rust based bundler from us, which is heavily optimized for umi and much faster than webpack. Visit https://makojs.dev/docs/getting-started#bundle-with-umi for more details if you want to give it a try.
Expand Down Expand Up @@ -200,4 +205,62 @@ umi deadcode
- @umijs/core/dist/service/generatePlugin
- ./node_modules/@umijs/plugins/dist/dva
- ./node_modules/@umijs/plugins/dist/model
```

## MFSU

```sh
# highlight-next-line
% umi -h

Usage: umi <command> [options]

Commands:

esbuildHelperCheckercheck esbuild helper conflicts
build build app for production
config umi config cli
dev dev server for development
help show commands help
lint lint source code using eslint and stylelint
setup setup project
deadcode check dead code
version show umi version
v show umi version
plugin inspect umi plugins
verify-commitverify the commit message, which is usually used with husky.
preview locally preview production build
mfsu mfsu CLI util
run run the script commands, support for ts and zx
generate generate code snippets quickly
g generate code snippets quickly

Run `umi help <command>` for more information of specific commands.
Visit https://umijs.org/ to learn more about Umi.


# highlight-next-line
% umi mfsu -h

Usage: umi mfsu [options]
mfsu CLI util.

Details:
# MFSU CLI util
# umi mfsu [action]

# Show Help
$ umi mfsu

# Manually build mfsu dependencies
$ umi mfsu build
$ umi mfsu b

# list mfsu dependencies
$ umi mfsu list
$ umi mfsu ls

# remove mfsu dependencies
$ umi mfsu remove
$ umi mfsu remove --all
```

0 comments on commit 31ccee0

Please sign in to comment.