@modern-js/main-doc 2.4.0 → 2.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (315) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/LICENSE +0 -123
  3. package/README.md +26 -0
  4. package/en/apis/app/commands.mdx +297 -0
  5. package/en/apis/app/hooks/_category_.json +2 -5
  6. package/en/apis/app/hooks/api/framework/lambda.mdx +1 -1
  7. package/en/apis/app/hooks/api/functions/api.mdx +1 -1
  8. package/en/apis/app/hooks/server/index_.mdx +2 -1
  9. package/en/apis/app/hooks/src/pages.mdx +7 -7
  10. package/en/apis/app/hooks/src/routes.mdx +3 -3
  11. package/en/apis/app/runtime/_category_.json +1 -5
  12. package/en/apis/app/runtime/app/define-config.mdx +2 -2
  13. package/en/apis/app/runtime/core/bootstrap.mdx +1 -1
  14. package/en/apis/app/runtime/core/create-app.mdx +2 -2
  15. package/en/apis/app/runtime/core/use-loader.mdx +4 -4
  16. package/en/apis/app/runtime/core/use-module-apps.mdx +2 -2
  17. package/en/apis/app/runtime/model/Provider.mdx +2 -2
  18. package/en/apis/app/runtime/model/auto-actions.mdx +2 -2
  19. package/en/apis/app/runtime/model/connect.mdx +5 -5
  20. package/en/apis/app/runtime/model/create-app.mdx +9 -9
  21. package/en/apis/app/runtime/model/create-store.mdx +3 -3
  22. package/en/apis/app/runtime/model/handle-effect.mdx +2 -2
  23. package/en/apis/app/runtime/model/model_.mdx +1 -1
  24. package/en/apis/app/runtime/model/use-local-model.mdx +1 -1
  25. package/en/apis/app/runtime/model/use-model.mdx +1 -1
  26. package/en/apis/app/runtime/model/use-static-model.mdx +4 -4
  27. package/en/apis/app/runtime/model/use-store.mdx +1 -1
  28. package/en/apis/app/runtime/router/router.mdx +1 -1
  29. package/en/apis/app/runtime/ssr/pre-render.mdx +1 -1
  30. package/en/apis/app/runtime/testing/render.mdx +1 -1
  31. package/en/apis/app/runtime/testing/renderApp.mdx +1 -1
  32. package/en/apis/app/runtime/utility/css-in-js.mdx +1 -1
  33. package/en/apis/app/runtime/utility/loadable.mdx +1 -1
  34. package/en/apis/app/runtime/web-server/hook.mdx +5 -5
  35. package/en/apis/app/runtime/web-server/middleware.mdx +6 -6
  36. package/en/components/global-proxy-config.mdx +3 -3
  37. package/en/components/init-app.mdx +5 -5
  38. package/en/configure/app/bff/_category_.json +4 -0
  39. package/en/configure/app/bff/prefix.mdx +2 -3
  40. package/en/configure/app/bff/proxy.mdx +1 -1
  41. package/en/configure/app/builder-plugins.mdx +3 -3
  42. package/en/configure/app/deploy/_category_.json +4 -0
  43. package/en/configure/app/dev/_category_.json +4 -0
  44. package/en/configure/app/dev/asset-prefix.mdx +1 -1
  45. package/en/configure/app/dev/before-start-url.mdx +13 -0
  46. package/en/configure/app/dev/hmr.mdx +1 -1
  47. package/en/configure/app/dev/host.mdx +13 -0
  48. package/en/configure/app/dev/https.mdx +1 -1
  49. package/en/configure/app/dev/port.mdx +1 -1
  50. package/en/configure/app/dev/progress-bar.mdx +1 -1
  51. package/en/configure/app/dev/start-url.mdx +1 -1
  52. package/en/configure/app/experiments/_category_.json +4 -0
  53. package/en/configure/app/experiments/lazy-compilation.mdx +1 -1
  54. package/en/configure/app/html/_category_.json +4 -0
  55. package/en/configure/app/html/app-icon.mdx +1 -1
  56. package/en/configure/app/html/crossorigin.mdx +1 -1
  57. package/en/configure/app/html/disable-html-folder.mdx +1 -1
  58. package/en/configure/app/html/favicon-by-entries.mdx +1 -1
  59. package/en/configure/app/html/favicon.mdx +1 -1
  60. package/en/configure/app/html/inject-by-entries.mdx +1 -1
  61. package/en/configure/app/html/inject.mdx +1 -1
  62. package/en/configure/app/html/meta-by-entries.mdx +1 -1
  63. package/en/configure/app/html/meta.mdx +1 -1
  64. package/en/configure/app/html/mount-id.mdx +1 -1
  65. package/en/configure/app/html/tags-by-entries.mdx +1 -1
  66. package/en/configure/app/html/tags.mdx +1 -1
  67. package/en/configure/app/html/template-by-entries.mdx +1 -1
  68. package/en/configure/app/html/template-parameters-by-entries.mdx +1 -1
  69. package/en/configure/app/html/template-parameters.mdx +1 -1
  70. package/en/configure/app/html/template.mdx +1 -1
  71. package/en/configure/app/html/title-by-entries.mdx +1 -1
  72. package/en/configure/app/html/title.mdx +1 -1
  73. package/en/configure/app/output/_category_.json +4 -0
  74. package/en/configure/app/output/asset-prefix.mdx +1 -1
  75. package/en/configure/app/output/assets-retry.mdx +1 -1
  76. package/en/configure/app/output/charset.mdx +1 -1
  77. package/en/configure/app/output/clean-dist-path.mdx +1 -1
  78. package/en/configure/app/output/convert-to-rem.mdx +1 -1
  79. package/en/configure/app/output/copy.mdx +1 -1
  80. package/en/configure/app/output/css-module-local-ident-name.mdx +1 -1
  81. package/en/configure/app/output/data-uri-limit.mdx +1 -1
  82. package/en/configure/app/output/disable-css-extract.mdx +1 -1
  83. package/en/configure/app/output/disable-css-module-extension.mdx +1 -1
  84. package/en/configure/app/output/disable-filename-hash.mdx +1 -1
  85. package/en/configure/app/output/disable-inline-runtime-chunk.mdx +1 -1
  86. package/en/configure/app/output/disable-minimize.mdx +1 -1
  87. package/en/configure/app/output/disable-source-map.mdx +1 -1
  88. package/en/configure/app/output/disable-ts-checker.mdx +1 -1
  89. package/en/configure/app/output/dist-path.mdx +1 -1
  90. package/en/configure/app/output/enable-asset-fallback.mdx +1 -1
  91. package/en/configure/app/output/enable-asset-manifest.mdx +1 -1
  92. package/en/configure/app/output/enable-css-module-tsdeclaration.mdx +1 -1
  93. package/en/configure/app/output/enable-inline-scripts.mdx +1 -1
  94. package/en/configure/app/output/enable-inline-styles.mdx +1 -1
  95. package/en/configure/app/output/enable-latest-decorators.mdx +1 -1
  96. package/en/configure/app/output/externals.mdx +1 -1
  97. package/en/configure/app/output/filename.mdx +1 -1
  98. package/en/configure/app/output/legal-comments.mdx +1 -1
  99. package/en/configure/app/output/override-browserslist.mdx +1 -1
  100. package/en/configure/app/output/polyfill.mdx +1 -1
  101. package/en/configure/app/output/ssg.mdx +5 -5
  102. package/en/configure/app/output/svg-default-export.mdx +1 -1
  103. package/en/configure/app/performance/_category_.json +4 -0
  104. package/en/configure/app/performance/build-cache.mdx +1 -1
  105. package/en/configure/app/performance/bundle-analyze.mdx +1 -1
  106. package/en/configure/app/performance/chunk-split.mdx +1 -1
  107. package/en/configure/app/performance/print-file-size.mdx +1 -1
  108. package/en/configure/app/performance/profile.mdx +1 -1
  109. package/en/configure/app/performance/remove-console.mdx +1 -1
  110. package/en/configure/app/performance/remove-moment-locale.mdx +1 -1
  111. package/en/configure/app/plugins.mdx +1 -1
  112. package/en/configure/app/runtime/_category_.json +4 -0
  113. package/en/configure/app/runtime/intro.mdx +2 -2
  114. package/en/configure/app/runtime/master-app.mdx +1 -1
  115. package/en/configure/app/security/_category_.json +4 -0
  116. package/en/configure/app/security/check-syntax.mdx +1 -1
  117. package/en/configure/app/security/sri.mdx +1 -1
  118. package/en/configure/app/server/_category_.json +4 -0
  119. package/en/configure/app/server/base-url.mdx +3 -3
  120. package/en/configure/app/server/enable-framework-ext.mdx +1 -1
  121. package/en/configure/app/server/ssr-by-entries.mdx +1 -1
  122. package/en/configure/app/source/_category_.json +4 -0
  123. package/en/configure/app/source/alias.mdx +1 -1
  124. package/en/configure/app/source/compile-js-data-uri.mdx +1 -1
  125. package/en/configure/app/source/define.mdx +1 -1
  126. package/en/configure/app/source/design-system.mdx +5 -5
  127. package/en/configure/app/source/entries-dir.mdx +1 -1
  128. package/en/configure/app/source/entries.mdx +3 -3
  129. package/en/configure/app/source/exclude.mdx +1 -1
  130. package/en/configure/app/source/global-vars.mdx +1 -1
  131. package/en/configure/app/source/include.mdx +1 -1
  132. package/en/configure/app/source/module-scopes.mdx +1 -1
  133. package/en/configure/app/source/pre-entry.mdx +1 -1
  134. package/en/configure/app/source/resolve-extension-prefix.mdx +1 -1
  135. package/en/configure/app/source/resolve-main-fields.mdx +1 -1
  136. package/en/configure/app/testing/_category_.json +4 -0
  137. package/en/configure/app/testing/transformer.mdx +1 -1
  138. package/en/configure/app/tools/_category_.json +4 -0
  139. package/en/configure/app/tools/autoprefixer.mdx +1 -1
  140. package/en/configure/app/tools/babel.mdx +1 -1
  141. package/en/configure/app/tools/css-extract.mdx +1 -1
  142. package/en/configure/app/tools/css-loader.mdx +1 -1
  143. package/en/configure/app/tools/dev-server.mdx +1 -1
  144. package/en/configure/app/tools/html-plugin.mdx +1 -1
  145. package/en/configure/app/tools/inspector.mdx +1 -1
  146. package/en/configure/app/tools/jest.mdx +1 -1
  147. package/en/configure/app/tools/less.mdx +1 -1
  148. package/en/configure/app/tools/minify-css.mdx +1 -1
  149. package/en/configure/app/tools/postcss.mdx +1 -1
  150. package/en/configure/app/tools/pug.mdx +1 -1
  151. package/en/configure/app/tools/rspack.mdx +13 -0
  152. package/en/configure/app/tools/sass.mdx +1 -1
  153. package/en/configure/app/tools/style-loader.mdx +1 -1
  154. package/en/configure/app/tools/styled-components.mdx +1 -1
  155. package/en/configure/app/tools/tailwindcss.mdx +1 -1
  156. package/en/configure/app/tools/terser.mdx +1 -1
  157. package/en/configure/app/tools/ts-checker.mdx +1 -1
  158. package/en/configure/app/tools/ts-loader.mdx +1 -1
  159. package/en/configure/app/tools/webpack-chain.mdx +1 -1
  160. package/en/configure/app/tools/webpack.mdx +1 -1
  161. package/en/configure/app/usage.mdx +1 -1
  162. package/en/guides/advanced-features/_category_.json +2 -2
  163. package/en/guides/advanced-features/bff/bff-proxy.mdx +1 -1
  164. package/en/guides/advanced-features/bff/frameworks.mdx +1 -1
  165. package/en/guides/advanced-features/bff/function.mdx +3 -3
  166. package/en/guides/advanced-features/code-split.mdx +2 -2
  167. package/en/guides/advanced-features/compatibility.mdx +2 -3
  168. package/en/guides/advanced-features/eslint.mdx +4 -4
  169. package/en/guides/advanced-features/low-level.mdx +1 -1
  170. package/en/guides/advanced-features/rspack-start.mdx +69 -0
  171. package/en/guides/advanced-features/ssg.mdx +12 -13
  172. package/en/guides/advanced-features/ssr.mdx +3 -3
  173. package/en/guides/advanced-features/testing.mdx +4 -5
  174. package/en/guides/advanced-features/web-server.mdx +0 -1
  175. package/en/guides/basic-features/alias.mdx +5 -5
  176. package/en/guides/basic-features/data-fetch.mdx +25 -12
  177. package/en/guides/basic-features/env-vars.mdx +1 -1
  178. package/en/guides/basic-features/html.mdx +11 -11
  179. package/en/guides/basic-features/mock.mdx +21 -1
  180. package/en/guides/basic-features/proxy.mdx +2 -2
  181. package/en/guides/basic-features/routes.mdx +29 -15
  182. package/en/guides/{basic-features → concept}/builder.mdx +2 -2
  183. package/en/guides/concept/entries.mdx +11 -11
  184. package/en/guides/css/_category_.json +5 -0
  185. package/en/guides/{basic-features/css → css}/less-sass.mdx +1 -1
  186. package/en/guides/get-started/introduction.mdx +34 -0
  187. package/en/guides/get-started/quick-start.mdx +4 -4
  188. package/en/guides/get-started/upgrade.mdx +2 -1
  189. package/en/guides/topic-detail/_category_.json +2 -2
  190. package/en/guides/topic-detail/framework-plugin/hook.mdx +1 -1
  191. package/en/guides/topic-detail/generator/plugin/api/hook/onForged.mdx +1 -1
  192. package/en/guides/topic-detail/generator/plugin/develop.mdx +1 -1
  193. package/en/guides/topic-detail/micro-frontend/c02-development.mdx +128 -61
  194. package/en/guides/topic-detail/micro-frontend/c03-main-app.mdx +73 -42
  195. package/en/guides/topic-detail/micro-frontend/c05-mixed-stack.mdx +1 -1
  196. package/en/guides/topic-detail/model/auto-actions.mdx +1 -1
  197. package/en/guides/topic-detail/model/define-model.mdx +1 -1
  198. package/en/guides/topic-detail/model/manage-effects.mdx +1 -1
  199. package/en/guides/topic-detail/model/model-communicate.mdx +1 -1
  200. package/en/guides/topic-detail/model/quick-start.mdx +2 -2
  201. package/en/guides/topic-detail/model/test-model.mdx +1 -1
  202. package/en/guides/topic-detail/model/use-model.mdx +3 -3
  203. package/en/guides/troubleshooting/_category_.json +2 -2
  204. package/en/guides/troubleshooting/cli.mdx +1 -1
  205. package/en/index.md +1 -1
  206. package/en/tutorials/first-app/_category_.json +1 -1
  207. package/en/tutorials/first-app/c01-start.mdx +0 -1
  208. package/en/tutorials/first-app/c03-css.mdx +1 -2
  209. package/en/tutorials/first-app/c06-model.mdx +1 -1
  210. package/en/tutorials/first-app/c07-container.mdx +18 -18
  211. package/en/tutorials/first-app/c08-entries.mdx +24 -25
  212. package/en/tutorials/foundations/introduction.mdx +17 -34
  213. package/package.json +3 -3
  214. package/scripts/config.ts +3 -1
  215. package/scripts/summary.en.json +1 -1
  216. package/scripts/summary.zh.json +1 -1
  217. package/zh/apis/app/commands.mdx +299 -0
  218. package/zh/apis/app/hooks/_category_.json +2 -5
  219. package/zh/apis/app/hooks/src/pages.mdx +1 -1
  220. package/zh/apis/app/hooks/src/routes.mdx +3 -3
  221. package/zh/apis/app/runtime/_category_.json +1 -5
  222. package/zh/apis/app/runtime/core/create-app.mdx +1 -1
  223. package/zh/apis/app/runtime/core/use-module-apps.mdx +81 -40
  224. package/zh/apis/app/runtime/model/Provider.mdx +2 -2
  225. package/zh/apis/app/runtime/model/create-app.mdx +7 -7
  226. package/zh/apis/app/runtime/model/create-store.mdx +2 -2
  227. package/zh/apis/app/runtime/model/use-local-model.mdx +1 -1
  228. package/zh/apis/app/runtime/model/use-static-model.mdx +1 -1
  229. package/zh/apis/app/runtime/model/use-store.mdx +1 -1
  230. package/zh/apis/app/runtime/testing/renderApp.mdx +1 -1
  231. package/zh/components/init-app.mdx +5 -5
  232. package/zh/components/micro-runtime-config.mdx +6 -6
  233. package/zh/components/release-note.mdx +1 -1
  234. package/zh/configure/app/bff/prefix.mdx +1 -1
  235. package/zh/configure/app/bff/proxy.mdx +1 -1
  236. package/zh/configure/app/builder-plugins.mdx +3 -3
  237. package/zh/configure/app/dev/before-start-url.mdx +13 -0
  238. package/zh/configure/app/dev/host.mdx +13 -0
  239. package/zh/configure/app/output/ssg.mdx +3 -3
  240. package/zh/configure/app/plugins.mdx +1 -1
  241. package/zh/configure/app/server/ssr-by-entries.mdx +1 -1
  242. package/zh/configure/app/source/entries-dir.mdx +1 -1
  243. package/zh/configure/app/tools/rspack.mdx +13 -0
  244. package/zh/configure/app/usage.mdx +1 -1
  245. package/zh/guides/advanced-features/_category_.json +2 -6
  246. package/zh/guides/advanced-features/compatibility.mdx +0 -1
  247. package/zh/guides/advanced-features/rspack-start.mdx +69 -0
  248. package/zh/guides/advanced-features/ssg.mdx +8 -9
  249. package/zh/guides/advanced-features/ssr.mdx +3 -2
  250. package/zh/guides/advanced-features/testing.mdx +0 -1
  251. package/zh/guides/advanced-features/web-server.mdx +0 -1
  252. package/zh/guides/basic-features/_category_.json +1 -5
  253. package/zh/guides/basic-features/alias.mdx +5 -5
  254. package/zh/guides/basic-features/data-fetch.mdx +39 -30
  255. package/zh/guides/basic-features/html.mdx +10 -9
  256. package/zh/guides/basic-features/mock.mdx +20 -0
  257. package/zh/guides/basic-features/routes.mdx +38 -17
  258. package/zh/guides/{basic-features → concept}/builder.mdx +4 -4
  259. package/zh/guides/concept/entries.mdx +11 -11
  260. package/zh/guides/css/_category_.json +5 -0
  261. package/zh/guides/{basic-features/css → css}/less-sass.mdx +1 -1
  262. package/zh/guides/{basic-features/css → css}/postcss.mdx +5 -4
  263. package/zh/guides/{basic-features/css → css}/tailwindcss.mdx +0 -1
  264. package/zh/guides/get-started/introduction.mdx +31 -0
  265. package/zh/guides/get-started/quick-start.mdx +4 -5
  266. package/zh/guides/get-started/upgrade.mdx +2 -1
  267. package/zh/guides/topic-detail/_category_.json +2 -2
  268. package/zh/guides/topic-detail/generator/plugin/api/input/addInputBefore.mdx +1 -1
  269. package/zh/guides/topic-detail/micro-frontend/c02-development.mdx +25 -0
  270. package/zh/guides/topic-detail/micro-frontend/c03-main-app.mdx +16 -16
  271. package/zh/guides/topic-detail/model/model-communicate.mdx +1 -1
  272. package/zh/guides/troubleshooting/_category_.json +2 -2
  273. package/zh/index.md +1 -1
  274. package/zh/tutorials/first-app/_category_.json +1 -1
  275. package/zh/tutorials/first-app/c01-start.mdx +1 -2
  276. package/zh/tutorials/first-app/c03-css.mdx +1 -2
  277. package/zh/tutorials/first-app/c06-model.mdx +2 -2
  278. package/zh/tutorials/first-app/c07-container.mdx +18 -18
  279. package/zh/tutorials/first-app/c08-entries.mdx +25 -26
  280. package/zh/tutorials/foundations/introduction.mdx +14 -29
  281. package/en/apis/app/commands/_category_.json +0 -8
  282. package/en/apis/app/commands/build.mdx +0 -39
  283. package/en/apis/app/commands/dev.mdx +0 -61
  284. package/en/apis/app/commands/index.mdx +0 -7
  285. package/en/apis/app/commands/inspect.mdx +0 -61
  286. package/en/apis/app/commands/lint.mdx +0 -19
  287. package/en/apis/app/commands/new.mdx +0 -54
  288. package/en/apis/app/commands/serve.mdx +0 -27
  289. package/en/apis/app/commands/test.mdx +0 -35
  290. package/en/apis/app/commands/upgrade.mdx +0 -18
  291. package/en/apis/app/hooks/index.mdx +0 -7
  292. package/en/apis/app/runtime/index.mdx +0 -7
  293. package/en/guides/advanced-features/index.mdx +0 -7
  294. package/en/guides/basic-features/css/_category_.json +0 -4
  295. package/zh/apis/app/commands/_category_.json +0 -8
  296. package/zh/apis/app/commands/build.mdx +0 -39
  297. package/zh/apis/app/commands/dev.mdx +0 -61
  298. package/zh/apis/app/commands/index.mdx +0 -7
  299. package/zh/apis/app/commands/inspect.mdx +0 -61
  300. package/zh/apis/app/commands/lint.mdx +0 -19
  301. package/zh/apis/app/commands/new.mdx +0 -54
  302. package/zh/apis/app/commands/serve.mdx +0 -27
  303. package/zh/apis/app/commands/test.mdx +0 -35
  304. package/zh/apis/app/commands/upgrade.mdx +0 -18
  305. package/zh/apis/app/hooks/index.mdx +0 -7
  306. package/zh/apis/app/runtime/index.mdx +0 -7
  307. package/zh/guides/advanced-features/index.mdx +0 -7
  308. package/zh/guides/basic-features/css/_category_.json +0 -4
  309. package/zh/guides/basic-features/index.mdx +0 -7
  310. /package/en/guides/{basic-features/css → css}/css-in-js.mdx +0 -0
  311. /package/en/guides/{basic-features/css → css}/css-modules.mdx +0 -0
  312. /package/en/guides/{basic-features/css → css}/postcss.mdx +0 -0
  313. /package/en/guides/{basic-features/css → css}/tailwindcss.mdx +0 -0
  314. /package/zh/guides/{basic-features/css → css}/css-in-js.mdx +0 -0
  315. /package/zh/guides/{basic-features/css → css}/css-modules.mdx +0 -0
@@ -21,8 +21,8 @@ interface ProviderProps {
21
21
 
22
22
  ### Input
23
23
 
24
- - store: the Store object created by [`createStore`](./create-store.md).
25
- - config: this config to create Reduck Store, same as `config` param in [`createApp`](./create-app.md).
24
+ - store: the Store object created by [`createStore`](./create-store.mdx).
25
+ - config: this config to create Reduck Store, same as `config` param in [`createApp`](./create-app.mdx).
26
26
 
27
27
  ## Example
28
28
 
@@ -19,7 +19,7 @@ can use [`runtime.state.autoActions`](/configure/app/runtime/state#autoactions)
19
19
 
20
20
  ### Basic Data Type
21
21
 
22
- State type in `string`、`number`、`boolean`、`null`,generate `setState` Action
22
+ State type in `string`、`number`、`boolean`、`null`,generate `setState` Action.
23
23
 
24
24
  ```tsx title="example"
25
25
  const fooModel = model('foo').define({
@@ -93,7 +93,7 @@ function App() {
93
93
 
94
94
  ### PlainObject
95
95
 
96
- State type is PlainObject,base on the names contained in State,generate `set${key}`(Camel-Case) Actions
96
+ State type is PlainObject,base on the names contained in State,generate `set${key}`(Camel-Case) Actions.
97
97
 
98
98
  ```tsx title="example"
99
99
  const fooModel = model('foo').define({
@@ -9,7 +9,7 @@ import ReduckTip from "@site-docs-en/components/reduck-tip"
9
9
  <ReduckTip />
10
10
 
11
11
  :::tip
12
- The original type of Reduck is complex. The following type definition shows the simplified type information. For the original type, see [**connect**](https://github.com/modern-js-dev/reduck/blob/main/packages/react/src/connect.ts)
12
+ The original type of Reduck is complex. The following type definition shows the simplified type information. For the original type, see [**connect**](https://github.com/modern-js-dev/reduck/blob/main/packages/react/src/connect.ts).
13
13
 
14
14
  :::
15
15
 
@@ -82,11 +82,11 @@ const modelB = model('modelB').define({
82
82
  });
83
83
 
84
84
  function Test(props) {
85
- props.incA(); // call modelA action
86
- props.incB(); // call modelB action
85
+ props.incA(); // call modelA's action
86
+ props.incB(); // call modelB's action
87
87
 
88
- props.a; // get modelA state: a
89
- props.b; // get modelB state: b
88
+ props.a; // get modelA's state: a
89
+ props.b; // get modelB's state: b
90
90
  }
91
91
 
92
92
  export default connect([modelA, modelB])(Test);
@@ -8,7 +8,7 @@ import ReduckTip from "@site-docs-en/components/reduck-tip"
8
8
 
9
9
  <ReduckTip />
10
10
 
11
- Reduck will call `createApp` to create a global application by default. If the entire application only needs one Store, then there is no need to call `createApp` manuallyOnly need to use `createApp` when you need to create a Store locally in the app.
11
+ Reduck will call `createApp` to create a global application by default. If the entire application only needs one Store, then there is no need to call `createApp` manually.Only need to use `createApp` when you need to create a Store locally in the app.
12
12
 
13
13
  :::caution
14
14
  Note that the exported `createApp` in `@modern-js/runtime/model` is used to manage state, while the exported `createApp` in `@modern-js/runtime` is used to create the entire application. The two are differently.
@@ -29,19 +29,19 @@ function createApp(config: AppConfig): object;
29
29
  ### Input
30
30
 
31
31
  - `config`
32
- - `StoreConfig`: the same as [`createStore`](./create-store.md) params.
33
- - `devTools`: the default value is `true`. when it is an object type,configuring [Options](https://github.com/reduxjs/redux-devtools/blob/main/extension/docs/API/Arguments.md) of Redux DevTools
34
- - `autoActions`: the default value is `true`。if [auto generate Actions](./auto-actions.md)
32
+ - `StoreConfig`: the same as [`createStore`](./create-store.mdx) params.
33
+ - `devTools`: the default value is `true`. when it is an object type,configuring [Options](https://github.com/reduxjs/redux-devtools/blob/main/extension/docs/API/Arguments.md) of Redux DevTools.
34
+ - `autoActions`: the default value is `true`.if [auto generate Actions](./auto-actions.mdx).
35
35
 
36
36
  ### Return Value
37
37
 
38
38
  Reduck App, consists of the following properties:
39
39
 
40
- - `Provider`: inject shared Store into locally component tree, same as [`Provider`](./Provider.md)
41
- - `useModel`: get the Model mounted by the app's local Store, same as [`useModel`](./use-model.md)
42
- - `useStaticModel`: get the Model mounted by the app's local Store. same as [`useStaticModel`](./use-static-model.md)
43
- - `useLocalModel`: get the Model mounted by the app's local Store. same as [`useLocalModel`](./use-local-model.md)
44
- - `useStore`: get the Store used locally by the app. same as [`useStore`](./use-store.md)
40
+ - `Provider`: inject shared Store into locally component tree, same as [`Provider`](./Provider.mdx).
41
+ - `useModel`: get the Model mounted by the app's local Store, same as [`useModel`](./use-model.mdx).
42
+ - `useStaticModel`: get the Model mounted by the app's local Store. same as [`useStaticModel`](./use-static-model.mdx).
43
+ - `useLocalModel`: get the Model mounted by the app's local Store. same as [`useLocalModel`](./use-local-model.mdx).
44
+ - `useStore`: get the Store used locally by the app. same as [`useStore`](./use-store.mdx).
45
45
 
46
46
  ## Example
47
47
 
@@ -10,7 +10,7 @@ import ReduckTip from "@site-docs-en/components/reduck-tip"
10
10
 
11
11
  `createStore` is used to create a Store. Reduck’s Store based on Redux's [Store](https://redux.js.org/api/store) implementatio. Used to store the state of the application and managing the state and Model.
12
12
 
13
- In general, this API is only used when you need to have full control over the creation of the Store. For example, to customize a Store, pass in the ['Provider'](./Provider.md) component to use.
13
+ In general, this API is only used when you need to have full control over the creation of the Store. For example, to customize a Store, pass in the ['Provider'](./Provider.mdx) component to use.
14
14
 
15
15
  ## Function Signature
16
16
 
@@ -38,13 +38,13 @@ function createStore(config?: StoreConfig): ReduckStore;
38
38
  - `models`: set the Model to mount to the Store in advance(No need for normal use).
39
39
  - `middlewares`: set Redux [middleware](https://redux.js.org/understanding/thinking-in-redux/glossary#middleware).
40
40
  - `enhancers`: set Redux [Store enhancer](https://redux.js.org/understanding/thinking-in-redux/glossary#store-enhancer).
41
- - `plugins`: set Reduck plugin。***experimental API, not recommended***。
41
+ - `plugins`: set Reduck plugin.***experimental API, not recommended***.
42
42
 
43
43
  ### Return Value
44
44
 
45
45
  Reduck Store:
46
46
 
47
- - `use`: mount and fetch Model objects dynamically. Usage is the same as ['useModel'](./use-model.md), but can be used outside of React components.
47
+ - `use`: mount and fetch Model objects dynamically. Usage is the same as ['useModel'](./use-model.mdx), but can be used outside of React components.
48
48
  - `unmount`: unmount the Model object, and the Model State is cleared from the Store.
49
49
  - `ReduxStore`: [Redux Store API](https://redux.js.org/tutorials/fundamentals/part-4-store#redux-store).
50
50
 
@@ -59,7 +59,7 @@ interface State {
59
59
 
60
60
  ```ts
61
61
  interface State {
62
- items: any; // 默认的 result -> items
62
+ items: any; // Default result -> items
63
63
  pending: boolean;
64
64
  error: string;
65
65
  }
@@ -78,7 +78,7 @@ interface State {
78
78
 
79
79
  - `error`: the default value is `"error"`. Change the name of the `error` field in the returned State. Usage is the same as `result`.
80
80
 
81
- - `combineMode`: the default value is `"merge"`。get fulfilled state results. There are two ways to deal with it (The data types that can be automatically processed here are also limited to simple object or array types):
81
+ - `combineMode`: the default value is `"merge"`. Get fulfilled state results. There are two ways to deal with it (The data types that can be automatically processed here are also limited to simple object or array types):
82
82
 
83
83
  - `"merge"`: the previous data is merged with the current data. the data is an array type, operation is similar to `[].concat(lastData, currentData)`. the data is an object,operation is similar to `{...lastData, ...curData}`.
84
84
  - `"replace"`: the current data directly replaces the previous data.
@@ -9,7 +9,7 @@ import ReduckTip from "@site-docs-en/components/reduck-tip"
9
9
  <ReduckTip />
10
10
 
11
11
  :::tip
12
- The original type of Reduck is complex. The following type definition shows the simplified type information. For the original type, see [**model**](https://github.com/modern-js-dev/reduck/blob/main/packages/store/src/model/model.ts)
12
+ The original type of Reduck is complex. The following type definition shows the simplified type information. For the original type, see [**model**](https://github.com/modern-js-dev/reduck/blob/main/packages/store/src/model/model.ts).
13
13
 
14
14
  :::
15
15
 
@@ -8,7 +8,7 @@ import ReduckTip from "@site-docs-en/components/reduck-tip"
8
8
 
9
9
  <ReduckTip />
10
10
 
11
- To use the State in the Model as a local state, the effect is similar to React's `useState`. `useLocalModel` API same as `useModel`. For detail, see [`useModel`](./use-model.md)
11
+ To use the State in the Model as a local state, the effect is similar to React's `useState`. `useLocalModel` API same as `useModel`. For detail, see [`useModel`](./use-model.mdx).
12
12
 
13
13
  ## Example
14
14
 
@@ -9,7 +9,7 @@ import ReduckTip from "@site-docs-en/components/reduck-tip"
9
9
  <ReduckTip />
10
10
 
11
11
  :::tip
12
- The original type of Reduck is complex. The following type definition shows the simplified type information. For the original type, see [**model**](https://github.com/modern-js-dev/reduck/blob/main/packages/store/src/model/model.ts)
12
+ The original type of Reduck is complex. The following type definition shows the simplified type information. For the original type, see [**model**](https://github.com/modern-js-dev/reduck/blob/main/packages/store/src/model/model.ts).
13
13
 
14
14
  :::
15
15
 
@@ -8,18 +8,18 @@ import ReduckTip from "@site-docs-en/components/reduck-tip"
8
8
 
9
9
  <ReduckTip />
10
10
 
11
- If want to consume a Model in the form of React Hook in the component,and can get the current latest state at any time,but you don't want the Model state to be updated, which will cause the component to be re-rendered, we can use `useStaticModel`。
11
+ If want to consume a Model in the form of React Hook in the component,and can get the current latest state at any time,but you don't want the Model state to be updated, which will cause the component to be re-rendered, we can use `useStaticModel`.
12
12
 
13
- `useStaticModel` API is same as `useModel`。For detail, see [`useModel`](./use-model.md)
13
+ `useStaticModel` API is same as `useModel`.For detail, see [`useModel`](./use-model.mdx).
14
14
 
15
15
  To ensure that the latest state is always available, be careful not to deconstruct the returned `state`.
16
16
 
17
17
  ```tsx
18
18
  function App() {
19
- // ❌ Do not deconstruct state,but can deconstruct actions
19
+ // ❌ Do not deconstruct state,but can deconstruct actions.
20
20
  const [{ username }, { logout }] = useStaticModel(userModel);
21
21
 
22
- // ✅ True Usage
22
+ // ✅ True Usage.
23
23
  const [state, { logout }] = useStaticModel(userModel);
24
24
 
25
25
  useEffect(() => {
@@ -18,7 +18,7 @@ function useStore(): ReduckStore;
18
18
 
19
19
  ### Return Type
20
20
 
21
- - ReduckStore: Reduck Store,type refer to the return type of [createStore](./create-store.md).
21
+ - ReduckStore: Reduck Store,type refer to the return type of [createStore](./create-store.mdx).
22
22
 
23
23
  :::info More
24
24
  [Use Model](/guides/topic-detail/model/use-model).
@@ -29,7 +29,7 @@ interface NavigateFunction {
29
29
  }
30
30
  ```
31
31
 
32
- The `useNavigate` hook returns a function that lets you navigate programmatically
32
+ The `useNavigate` hook returns a function that lets you navigate programmatically.
33
33
 
34
34
  ```tsx
35
35
  import { useNavigate } from '@modern-js/runtime/router';
@@ -36,7 +36,7 @@ function PreRender(props: Props): React.Component
36
36
  ### Input
37
37
 
38
38
  - `interval`: set the time the cache keep fresh,seconds. During this time, the cache will be used directly and not invoke asynchronous rendering.
39
- - `staleLimit`: sets the time when the cache is completely expired,secondsDuring this time, The cache can be returned and asynchronous rendering will be invoke, otherwise must wait for the re-rendered result.
39
+ - `staleLimit`: sets the time when the cache is completely expired,seconds.During this time, The cache can be returned and asynchronous rendering will be invoke, otherwise must wait for the re-rendered result.
40
40
  - `level`: sets the calculation rule level for the cache identity, usually used with `includes` and `matches`. The default value is `0`.
41
41
 
42
42
  ```bash
@@ -47,7 +47,7 @@ function render(ui: React.ReactElement<any>, options: Options): RenderResult;
47
47
 
48
48
  ### Return Value
49
49
 
50
- - `{...queries}`: all available [queries](https://testing-library.com/docs/queries/about/)
50
+ - `{...queries}`: all available [queries](https://testing-library.com/docs/queries/about/).
51
51
  - `container`: the DOM element that React component mounted.
52
52
  - `baseElement`
53
53
  - `debug`
@@ -17,7 +17,7 @@ For the testing of such components, you can use the `renderApp` function, which
17
17
 
18
18
  ## Function Signature
19
19
 
20
- `renderApp` is the same as [render](./render.md).
20
+ `renderApp` is the same as [render](./render.mdx).
21
21
 
22
22
  ## Example
23
23
 
@@ -13,7 +13,7 @@ import styled from '@modern-js/runtime/styled';
13
13
 
14
14
  ## Function Signature
15
15
 
16
- see [styled-component API](https://styled-components.com/docs/api)
16
+ see [styled-component API](https://styled-components.com/docs/api).
17
17
 
18
18
  ## Example
19
19
 
@@ -69,7 +69,7 @@ Whether to display fallback content during loading.
69
69
 
70
70
  #### options.ssr
71
71
 
72
- Whether to support SSR, the default value is `true`。
72
+ Whether to support SSR, the default value is `true`.
73
73
 
74
74
  ### Return Value
75
75
 
@@ -6,7 +6,7 @@ title: Hook
6
6
  Used to extend Modern.js built-in Web Server, requests except BFF are handled by these hooks.
7
7
 
8
8
  :::note
9
- For more detail, see [Extend Web Server](/guides/advanced-features/web-server)
9
+ For more detail, see [Extend Web Server](/guides/advanced-features/web-server).
10
10
 
11
11
  :::
12
12
 
@@ -20,12 +20,12 @@ export const afterRender: AfterRenderHook = (context, next) => {};
20
20
  ```
21
21
 
22
22
  :::info
23
- 使用该 API 前,请先执行 `pnpm run new` 新建「Web Server 扩展」源码目录。
23
+ Before using this API, please execute `pnpm run new` to create a new "Custom Web Server" source code directory.
24
24
 
25
25
  ```bash
26
26
  pnpm run new
27
- ? 请选择你想要的操作 创建工程元素
28
- ? 新建「Web Server 扩展」源码目录
27
+ ? Action Create project element
28
+ ? New "Custom Web Server" source code directory
29
29
  ```
30
30
 
31
31
  :::
@@ -92,7 +92,7 @@ type AfterRenderContext = {
92
92
  - `request`: provides a series of methods to get request info.
93
93
  - `router`: provides methods on routing.
94
94
  - `template`: provides methods on content.
95
- - `next`: call next listener(not affect the server process, only current hook)。
95
+ - `next`: call next listener(not affect the server process, only current hook).
96
96
 
97
97
  ## Example
98
98
 
@@ -8,7 +8,7 @@ Used to extend Modern.js built-in Web Server, only SSR requests are handled by t
8
8
  Unlike [Hook](/apis/app/runtime/web-server/hook), middleware can be extended using the framework plugin.
9
9
 
10
10
  :::note
11
- For more detail, see [Extend Web Server](/guides/advanced-features/web-server)
11
+ For more detail, see [Extend Web Server](/guides/advanced-features/web-server).
12
12
 
13
13
  :::
14
14
 
@@ -25,12 +25,12 @@ export const middleware: Middleware[] = [
25
25
  ```
26
26
 
27
27
  :::info
28
- 使用该 API 前,请先执行 `pnpm run new` 新建「Web Server 扩展」源码目录。
28
+ Before using this API, please execute `pnpm run new` to create a new "Custom Web Server" source code directory.
29
29
 
30
30
  ```bash
31
31
  pnpm run new
32
- ? 请选择你想要的操作 创建工程元素
33
- ? 新建「Web Server 扩展」源码目录
32
+ ? Action Create project element
33
+ ? New "Custom Web Server" source code directory
34
34
  ```
35
35
 
36
36
  :::
@@ -82,8 +82,8 @@ type RequestHandler = (
82
82
  - `context`: Middleware context.
83
83
  - `response`: provides a series of methods to process the response.
84
84
  - `request`: provides a series of methods to get request info.
85
- - `source`: provides Node.js native `req` and `res` object
86
- - `next`: call next listener(not affect the server process, only current hook)。
85
+ - `source`: provides Node.js native `req` and `res` object.
86
+ - `next`: call next listener(not affect the server process, only current hook).
87
87
 
88
88
  ## Example
89
89
 
@@ -3,8 +3,8 @@
3
3
 
4
4
  When this option is configured, the development environment will start a global proxy, similar to [Fiddler](https://www.telerik.com/fiddler), [Charles](https://www.charlesproxy.com/) and other web proxy debugging tools, which can be used to view, modify HTTP/HTTPS requests, responses, and can also be used as a proxy server.
5
5
 
6
- :::tip 提示
7
- Using this option requires advance installation `@modern-js/plugin-proxy`。
6
+ :::tip
7
+ Using this option requires advance installation `@modern-js/plugin-proxy`.
8
8
 
9
9
  :::
10
10
 
@@ -19,7 +19,7 @@ export default defineConfig({
19
19
  dev: {
20
20
  proxy: {
21
21
  'https://www.baidu.com': 'https://google.com.hk',
22
- //可以通过 file 协议直接返回静态文件。
22
+ // Static files can be returned directly via the file protocol
23
23
  'https://example.com/api': 'file://./data.json',
24
24
  },
25
25
  },
@@ -30,11 +30,11 @@ Now, the project structure is as follows:
30
30
  ```
31
31
  .
32
32
  ├── src
33
-    ├── modern-app-env.d.ts
34
-    └── routes
35
-    ├── index.css
36
-    ├── layout.tsx
37
-    └── page.tsx
33
+ ├── modern-app-env.d.ts
34
+ └── routes
35
+ ├── index.css
36
+ ├── layout.tsx
37
+ └── page.tsx
38
38
  ├── modern.config.ts
39
39
  ├── package.json
40
40
  ├── pnpm-lock.yaml
@@ -0,0 +1,4 @@
1
+ {
2
+ "label": "bff",
3
+ "position": 5
4
+ }
@@ -7,9 +7,8 @@ sidebar_label: prefix
7
7
  - **Type:** `string`
8
8
  - **Default:** `/api`
9
9
 
10
- :::caution Caution
11
- First you need to enable the "BFF" function using [new](/apis/app/commands/new) command.
12
-
10
+ :::caution
11
+ First you need to enable the "BFF" function using [new](/apis/app/commands#modern-new) command.
13
12
  :::
14
13
 
15
14
  By default, the route access BFF prefix's directory is `/api`, with the following directory structure:
@@ -8,7 +8,7 @@ sidebar_label: proxy
8
8
  - **Default:** `{}`
9
9
 
10
10
  :::caution Caution
11
- First you need to enable the "BFF" function using [new](/apis/app/commands/new) command.
11
+ First you need to enable the "BFF" function using [new](/apis/app/commands#modern-new) command.
12
12
 
13
13
  :::
14
14
 
@@ -9,19 +9,19 @@ sidebar_position: 10
9
9
 
10
10
  Used to configure the Modern.js Builder plugin.
11
11
 
12
- Modern.js Builder is the build engine of Modern.js, please read [Builder](/guides/basic-features/builder) for background. If you want to know how to write Builder plugins, you can refer to [Modern.js Builder - Introduce to Plugin](https://modernjs.dev/builder/en/plugins/introduction.html).
12
+ Modern.js Builder is the build engine of Modern.js, please read [Builder](/guides/concept/builder) for background. If you want to know how to write Builder plugins, you can refer to [Modern.js Builder - Introduce to Plugin](https://modernjs.dev/builder/en/plugins/introduction.html).
13
13
 
14
14
  ## Precautions
15
15
 
16
16
  This option **is used to configure the Modern.js Builder plugins**. If you need to configure other types of plugins, please select the corresponding configs:
17
17
 
18
- - Use [plugins](docs/configure/app/builder-plugins) to configure Modern.js framework plugins.
18
+ - Use [plugins](/configure/app/builder-plugins) to configure Modern.js framework plugins.
19
19
  - Use [tools.webpack](/configure/app/tools/webpack) or [tools.webpackChain](/configure/app/tools/webpack-chain) to configure webpack plugins.
20
20
  - Use [tools.babel](/configure/app/tools/babel) to configure babel plugins.
21
21
 
22
22
  ## When to use
23
23
 
24
- In most scenarios, we recommend you to use the Modern.js framework plugin, which can be registered through the [plugins](docs/configure/app/plugins) config. Because the API provided by the framework plugin is richer and more capable, while the API provided by the Builder plugin can only be used to build scenes.
24
+ In most scenarios, we recommend you to use the Modern.js framework plugin, which can be registered through the [plugins](/configure/app/plugins) config. Because the API provided by the framework plugin is richer and more capable, while the API provided by the Builder plugin can only be used to build scenes.
25
25
 
26
26
  When you need to reference some existing Builder plugins (and there is no related capability in Modern.js), or reuse Builder plugins between different frameworks, you can use the `builderPlugins` field to register them.
27
27
 
@@ -0,0 +1,4 @@
1
+ {
2
+ "label": "deploy",
3
+ "position": 8
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "label": "dev",
3
+ "position": 7
4
+ }
@@ -5,7 +5,7 @@ sidebar_label: assetPrefix
5
5
  # dev.assetPrefix
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [dev.assetPrefix](https://modernjs.dev/builder/en/api/config-dev.html#devassetprefix)
8
+ This config is provided by Modern.js Builder, more detail can see [dev.assetPrefix](https://modernjs.dev/builder/en/api/config-dev.html#devassetprefix).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/dev/assetPrefix.md'
@@ -0,0 +1,13 @@
1
+ ---
2
+ sidebar_label: beforeStartUrl
3
+ ---
4
+
5
+ # dev.beforeStartUrl
6
+
7
+ :::tip
8
+ This config is provided by Modern.js Builder, more detail can see [dev.beforeStartUrl](https://modernjs.dev/builder/en/api/config-dev.html#devbeforestarturl).
9
+ :::
10
+
11
+ import Main from '@modern-js/builder-doc/docs/en/config/dev/beforeStartUrl.md'
12
+
13
+ <Main />
@@ -5,7 +5,7 @@ sidebar_label: hmr
5
5
  # dev.hmr
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [dev.hmr](https://modernjs.dev/builder/en/api/config-dev.html#devhmr)
8
+ This config is provided by Modern.js Builder, more detail can see [dev.hmr](https://modernjs.dev/builder/en/api/config-dev.html#devhmr).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/dev/hmr.md'
@@ -0,0 +1,13 @@
1
+ ---
2
+ sidebar_label: host
3
+ ---
4
+
5
+ # dev.host
6
+
7
+ :::tip
8
+ This config is provided by Modern.js Builder, more detail can see [dev.host](https://modernjs.dev/builder/en/api/config-dev.html#devhost).
9
+ :::
10
+
11
+ import Main from '@modern-js/builder-doc/docs/en/config/dev/host.md'
12
+
13
+ <Main />
@@ -5,7 +5,7 @@ sidebar_label: https
5
5
  # dev.https
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [dev.https](https://modernjs.dev/builder/en/api/config-dev.html#devhttps)
8
+ This config is provided by Modern.js Builder, more detail can see [dev.https](https://modernjs.dev/builder/en/api/config-dev.html#devhttps).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/dev/https.md'
@@ -5,7 +5,7 @@ sidebar_label: port
5
5
  # dev.port
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [dev.port](https://modernjs.dev/builder/en/api/config-dev.html#devport)
8
+ This config is provided by Modern.js Builder, more detail can see [dev.port](https://modernjs.dev/builder/en/api/config-dev.html#devport).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/dev/port.md'
@@ -5,7 +5,7 @@ sidebar_label: progressBar
5
5
  # dev.progressBar
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [dev.progressBar](https://modernjs.dev/builder/en/api/config-dev.html#devprogressbar)
8
+ This config is provided by Modern.js Builder, more detail can see [dev.progressBar](https://modernjs.dev/builder/en/api/config-dev.html#devprogressbar).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/dev/progressBar.md'
@@ -5,7 +5,7 @@ sidebar_label: startUrl
5
5
  # dev.startUrl
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [dev.startUrl](https://modernjs.dev/builder/en/api/config-dev.html#devstarturl)
8
+ This config is provided by Modern.js Builder, more detail can see [dev.startUrl](https://modernjs.dev/builder/en/api/config-dev.html#devstarturl).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/dev/startUrl.md'
@@ -0,0 +1,4 @@
1
+ {
2
+ "label": "experiments",
3
+ "position": 15
4
+ }
@@ -5,7 +5,7 @@ sidebar_label: lazyCompilation
5
5
  # experiments.lazyCompilation
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [experiments.lazyCompilation](https://modernjs.dev/builder/en/api/config-experiments.html#experimentslazycompilation)
8
+ This config is provided by Modern.js Builder, more detail can see [experiments.lazyCompilation](https://modernjs.dev/builder/en/api/config-experiments.html#experimentslazycompilation).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/experiments/lazyCompilation.md'
@@ -0,0 +1,4 @@
1
+ {
2
+ "label": "html",
3
+ "position": 2
4
+ }
@@ -5,7 +5,7 @@ sidebar_label: appIcon
5
5
  # html.appIcon
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [html.appIcon](https://modernjs.dev/builder/en/api/config-html.html#htmlappicon)
8
+ This config is provided by Modern.js Builder, more detail can see [html.appIcon](https://modernjs.dev/builder/en/api/config-html.html#htmlappicon).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/html/appIcon.md'
@@ -5,7 +5,7 @@ sidebar_label: crossorigin
5
5
  # html.crossorigin
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [html.crossorigin](https://modernjs.dev/builder/en/api/config-html.html#htmlcrossorigin)
8
+ This config is provided by Modern.js Builder, more detail can see [html.crossorigin](https://modernjs.dev/builder/en/api/config-html.html#htmlcrossorigin).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/html/crossorigin.md'
@@ -5,7 +5,7 @@ sidebar_label: disableHtmlFolder
5
5
  # html.disableHtmlFolder
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [html.disableHtmlFolder](https://modernjs.dev/builder/en/api/config-html.html#htmldisablehtmlfolder)
8
+ This config is provided by Modern.js Builder, more detail can see [html.disableHtmlFolder](https://modernjs.dev/builder/en/api/config-html.html#htmldisablehtmlfolder).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/html/disableHtmlFolder.md'
@@ -5,7 +5,7 @@ sidebar_label: faviconByEntries
5
5
  # html.faviconByEntries
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [html.faviconByEntries](https://modernjs.dev/builder/en/api/config-html.html#htmlfaviconbyentries)
8
+ This config is provided by Modern.js Builder, more detail can see [html.faviconByEntries](https://modernjs.dev/builder/en/api/config-html.html#htmlfaviconbyentries).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/html/faviconByEntries.md'
@@ -5,7 +5,7 @@ sidebar_label: favicon
5
5
  # html.favicon
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [html.favicon](https://modernjs.dev/builder/en/api/config-html.html#htmlfavicon)
8
+ This config is provided by Modern.js Builder, more detail can see [html.favicon](https://modernjs.dev/builder/en/api/config-html.html#htmlfavicon).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/html/favicon.md'
@@ -5,7 +5,7 @@ sidebar_label: injectByEntries
5
5
  # html.injectByEntries
6
6
 
7
7
  :::tip
8
- This config is provided by Modern.js Builder, more detail can see [html.injectByEntries](https://modernjs.dev/builder/en/api/config-html.html#htmlinjectbyentries)
8
+ This config is provided by Modern.js Builder, more detail can see [html.injectByEntries](https://modernjs.dev/builder/en/api/config-html.html#htmlinjectbyentries).
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/en/config/html/injectByEntries.md'