-
Notifications
You must be signed in to change notification settings - Fork 237
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: add helmet plugin #180
Conversation
Codecov Report
@@ Coverage Diff @@
## master #180 +/- ##
==========================================
+ Coverage 51.48% 51.81% +0.33%
==========================================
Files 65 66 +1
Lines 1447 1457 +10
Branches 404 404
==========================================
+ Hits 745 755 +10
Misses 702 702
Continue to review full report at Codecov.
|
ssr 依赖这个插件才能正常生成 title 等 head 信息?那应该内置在 umi 里啊。 |
不需要依赖也可以,就是走 |
验证下只是开启这个插件,但是不使用,打包会不会包含 helmt 脚本,也就是会不会被 tree-shaking 掉。 |
验证了,这样就不会打包到 |
Usage:,考虑内置到yarn add @umijs/plugin-helmet
@umijs/preset-react
中,不需要单独再安装normal:
<title>Title Helmet</title>
if SSR:
=>
<title data-rh=\"true\">Title Helmet</title>