Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Umi 3 SSR #4499

Merged
merged 256 commits into from
May 18, 2020
Merged

feat: Umi 3 SSR #4499

merged 256 commits into from
May 18, 2020

Conversation

ycjcl868
Copy link
Contributor

@ycjcl868 ycjcl868 commented Apr 20, 2020

《🎉 发布 Umi 3.2.0 — 可能是西湖区最好用的 SSR 框架》

感谢 @i5ting @zhangyuang @eligao @hi-yinyue 对 Umi 3 SSR 开发过程中的大力支持!

『RFC』 :Close #4500
Close #4357
Close #3976
Close #3758
Close #3757
Close #3748
Close #3711
Close #4270
Close #3481
Close #3974
Close #1363
Close #2963
Close #659
Close #4119
Close #377
Close #3348
Close #3936
Close #2970
Close #3879
Close #3849
Close #4586
Close #3862
Close #3857
Close #4029
Close #1048
Close #3762
Close #3551
Close #3938
Close umijs/umi-server#22
Close umijs/umi-server#59
Close umijs/umi-server#25
Close umijs/umi-example-ssr#12
Close umijs/umi-example-ssr-with-egg#21
Close umijs/umi-example-ssr-with-egg#17
Close umijs/umi-example-ssr-with-egg#11
Close umijs/umi-next#12

ref: liady/webpack-node-externals#66

阿里云函数计算预览:http://umi.ssr-fc.com/

怎样使用

只需要配置(不再需要 umi-server,开箱即用):

// .umirc.ts
export default {
  ssr: {},
}

然后 umi dev,打开即是 SSR 后的。

使用预渲染:

// .umirc.ts
export default {
    ssr: {}
+  exportStatic: {},
}

image

Checklist
  • npm test passes
  • tests are included
  • documentation is changed or added
  • commit message follows commit guidelines
Description of change

@ycjcl868 ycjcl868 changed the title feat: umi 3 ssr [WIP] feat: umi 3 ssr Apr 20, 2020
@codecov
Copy link

codecov bot commented Apr 20, 2020

Codecov Report

Merging #4499 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4499   +/-   ##
=======================================
  Coverage   82.31%   82.31%           
=======================================
  Files         150      150           
  Lines        3200     3200           
  Branches      812      812           
=======================================
  Hits         2634     2634           
  Misses        561      561           
  Partials        5        5           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cb98f0a...cb98f0a. Read the comment docs.

@ycjcl868 ycjcl868 requested a review from kuitos May 18, 2020 05:37
@ycjcl868
Copy link
Contributor Author

@kuitos cc 看对微前端有影响没

@sorrycc sorrycc merged commit da2ae77 into master May 18, 2020
@delete-merged-branch delete-merged-branch bot deleted the feat-ssr-umi3 branch May 18, 2020 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
7 participants