@modern-js/main-doc 2.3.0 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (387) 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/_category_.json +1 -4
  5. package/en/apis/app/commands/new.mdx +11 -10
  6. package/en/apis/app/commands/test.mdx +1 -1
  7. package/en/apis/app/hooks/_category_.json +1 -4
  8. package/en/apis/app/hooks/api/framework/lambda.mdx +1 -1
  9. package/en/apis/app/hooks/api/functions/api.mdx +1 -1
  10. package/en/apis/app/hooks/server/index_.mdx +2 -1
  11. package/en/apis/app/hooks/src/pages.mdx +7 -7
  12. package/en/apis/app/hooks/src/routes.mdx +1 -1
  13. package/en/apis/app/runtime/_category_.json +1 -5
  14. package/en/apis/app/runtime/app/define-config.mdx +2 -2
  15. package/en/apis/app/runtime/core/bootstrap.mdx +1 -1
  16. package/en/apis/app/runtime/core/create-app.mdx +2 -2
  17. package/en/apis/app/runtime/core/use-loader.mdx +4 -4
  18. package/en/apis/app/runtime/core/use-module-apps.mdx +2 -2
  19. package/en/apis/app/runtime/model/Provider.mdx +2 -2
  20. package/en/apis/app/runtime/model/auto-actions.mdx +2 -2
  21. package/en/apis/app/runtime/model/connect.mdx +5 -5
  22. package/en/apis/app/runtime/model/create-app.mdx +9 -9
  23. package/en/apis/app/runtime/model/create-store.mdx +3 -3
  24. package/en/apis/app/runtime/model/handle-effect.mdx +2 -2
  25. package/en/apis/app/runtime/model/model_.mdx +1 -1
  26. package/en/apis/app/runtime/model/use-local-model.mdx +1 -1
  27. package/en/apis/app/runtime/model/use-model.mdx +1 -1
  28. package/en/apis/app/runtime/model/use-static-model.mdx +4 -4
  29. package/en/apis/app/runtime/model/use-store.mdx +1 -1
  30. package/en/apis/app/runtime/router/router.mdx +1 -1
  31. package/en/apis/app/runtime/ssr/pre-render.mdx +1 -1
  32. package/en/apis/app/runtime/testing/render.mdx +1 -1
  33. package/en/apis/app/runtime/testing/renderApp.mdx +1 -1
  34. package/en/apis/app/runtime/utility/css-in-js.mdx +1 -1
  35. package/en/apis/app/runtime/utility/loadable.mdx +1 -1
  36. package/en/apis/app/runtime/web-server/hook.mdx +5 -5
  37. package/en/apis/app/runtime/web-server/middleware.mdx +6 -6
  38. package/en/components/global-proxy-config.mdx +3 -3
  39. package/en/components/init-app.mdx +1 -1
  40. package/en/configure/app/bff/_category_.json +4 -0
  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/hmr.mdx +1 -1
  46. package/en/configure/app/dev/https.mdx +1 -1
  47. package/en/configure/app/dev/port.mdx +1 -1
  48. package/en/configure/app/dev/progress-bar.mdx +1 -1
  49. package/en/configure/app/dev/start-url.mdx +1 -1
  50. package/en/configure/app/experiments/_category_.json +4 -0
  51. package/en/configure/app/experiments/lazy-compilation.mdx +1 -1
  52. package/en/configure/app/html/_category_.json +4 -0
  53. package/en/configure/app/html/app-icon.mdx +1 -1
  54. package/en/configure/app/html/crossorigin.mdx +1 -1
  55. package/en/configure/app/html/disable-html-folder.mdx +1 -1
  56. package/en/configure/app/html/favicon-by-entries.mdx +1 -1
  57. package/en/configure/app/html/favicon.mdx +1 -1
  58. package/en/configure/app/html/inject-by-entries.mdx +1 -1
  59. package/en/configure/app/html/inject.mdx +1 -1
  60. package/en/configure/app/html/meta-by-entries.mdx +1 -1
  61. package/en/configure/app/html/meta.mdx +1 -1
  62. package/en/configure/app/html/mount-id.mdx +1 -1
  63. package/en/configure/app/html/tags-by-entries.mdx +1 -1
  64. package/en/configure/app/html/tags.mdx +1 -1
  65. package/en/configure/app/html/template-by-entries.mdx +1 -1
  66. package/en/configure/app/html/template-parameters-by-entries.mdx +1 -1
  67. package/en/configure/app/html/template-parameters.mdx +1 -1
  68. package/en/configure/app/html/template.mdx +1 -1
  69. package/en/configure/app/html/title-by-entries.mdx +1 -1
  70. package/en/configure/app/html/title.mdx +1 -1
  71. package/en/configure/app/output/_category_.json +4 -0
  72. package/en/configure/app/output/asset-prefix.mdx +1 -1
  73. package/en/configure/app/output/assets-retry.mdx +1 -1
  74. package/en/configure/app/output/charset.mdx +1 -1
  75. package/en/configure/app/output/clean-dist-path.mdx +1 -1
  76. package/en/configure/app/output/convert-to-rem.mdx +1 -1
  77. package/en/configure/app/output/copy.mdx +1 -1
  78. package/en/configure/app/output/css-module-local-ident-name.mdx +1 -1
  79. package/en/configure/app/output/data-uri-limit.mdx +1 -1
  80. package/en/configure/app/output/disable-css-extract.mdx +1 -1
  81. package/en/configure/app/output/disable-css-module-extension.mdx +1 -1
  82. package/en/configure/app/output/disable-filename-hash.mdx +1 -1
  83. package/en/configure/app/output/disable-inline-runtime-chunk.mdx +1 -1
  84. package/en/configure/app/output/disable-minimize.mdx +1 -1
  85. package/en/configure/app/output/disable-source-map.mdx +1 -1
  86. package/en/configure/app/output/disable-ts-checker.mdx +1 -1
  87. package/en/configure/app/output/dist-path.mdx +1 -1
  88. package/en/configure/app/output/enable-asset-fallback.mdx +1 -1
  89. package/en/configure/app/output/enable-asset-manifest.mdx +1 -1
  90. package/en/configure/app/output/enable-css-module-tsdeclaration.mdx +1 -1
  91. package/en/configure/app/output/enable-inline-scripts.mdx +1 -1
  92. package/en/configure/app/output/enable-inline-styles.mdx +1 -1
  93. package/en/configure/app/output/enable-latest-decorators.mdx +1 -1
  94. package/en/configure/app/output/externals.mdx +1 -1
  95. package/en/configure/app/output/filename.mdx +1 -1
  96. package/en/configure/app/output/legal-comments.mdx +1 -1
  97. package/en/configure/app/output/override-browserslist.mdx +1 -1
  98. package/en/configure/app/output/polyfill.mdx +1 -1
  99. package/en/configure/app/output/ssg.mdx +2 -2
  100. package/en/configure/app/output/svg-default-export.mdx +1 -1
  101. package/en/configure/app/performance/_category_.json +4 -0
  102. package/en/configure/app/performance/build-cache.mdx +1 -1
  103. package/en/configure/app/performance/bundle-analyze.mdx +1 -1
  104. package/en/configure/app/performance/chunk-split.mdx +1 -1
  105. package/en/configure/app/performance/print-file-size.mdx +1 -1
  106. package/en/configure/app/performance/profile.mdx +1 -1
  107. package/en/configure/app/performance/remove-console.mdx +1 -1
  108. package/en/configure/app/performance/remove-moment-locale.mdx +1 -1
  109. package/en/configure/app/plugins.mdx +1 -1
  110. package/en/configure/app/runtime/_category_.json +4 -0
  111. package/en/configure/app/runtime/intro.mdx +2 -2
  112. package/en/configure/app/security/_category_.json +4 -0
  113. package/en/configure/app/security/check-syntax.mdx +1 -1
  114. package/en/configure/app/security/sri.mdx +1 -1
  115. package/en/configure/app/server/_category_.json +4 -0
  116. package/en/configure/app/server/base-url.mdx +3 -3
  117. package/en/configure/app/server/enable-framework-ext.mdx +1 -1
  118. package/en/configure/app/server/ssr-by-entries.mdx +1 -1
  119. package/en/configure/app/source/_category_.json +4 -0
  120. package/en/configure/app/source/alias.mdx +1 -1
  121. package/en/configure/app/source/compile-js-data-uri.mdx +1 -1
  122. package/en/configure/app/source/define.mdx +1 -1
  123. package/en/configure/app/source/design-system.mdx +5 -5
  124. package/en/configure/app/source/entries.mdx +3 -3
  125. package/en/configure/app/source/exclude.mdx +1 -1
  126. package/en/configure/app/source/global-vars.mdx +1 -1
  127. package/en/configure/app/source/include.mdx +1 -1
  128. package/en/configure/app/source/module-scopes.mdx +1 -1
  129. package/en/configure/app/source/pre-entry.mdx +1 -1
  130. package/en/configure/app/source/resolve-extension-prefix.mdx +1 -1
  131. package/en/configure/app/source/resolve-main-fields.mdx +1 -1
  132. package/en/configure/app/testing/_category_.json +4 -0
  133. package/en/configure/app/tools/_category_.json +4 -0
  134. package/en/configure/app/tools/autoprefixer.mdx +1 -1
  135. package/en/configure/app/tools/babel.mdx +1 -1
  136. package/en/configure/app/tools/css-extract.mdx +1 -1
  137. package/en/configure/app/tools/css-loader.mdx +1 -1
  138. package/en/configure/app/tools/dev-server.mdx +1 -1
  139. package/en/configure/app/tools/html-plugin.mdx +1 -1
  140. package/en/configure/app/tools/inspector.mdx +1 -1
  141. package/en/configure/app/tools/less.mdx +1 -1
  142. package/en/configure/app/tools/minify-css.mdx +1 -1
  143. package/en/configure/app/tools/postcss.mdx +1 -1
  144. package/en/configure/app/tools/pug.mdx +1 -1
  145. package/en/configure/app/tools/rspack.mdx +13 -0
  146. package/en/configure/app/tools/sass.mdx +1 -1
  147. package/en/configure/app/tools/style-loader.mdx +1 -1
  148. package/en/configure/app/tools/styled-components.mdx +1 -1
  149. package/en/configure/app/tools/tailwindcss.mdx +1 -1
  150. package/en/configure/app/tools/terser.mdx +1 -1
  151. package/en/configure/app/tools/ts-checker.mdx +1 -1
  152. package/en/configure/app/tools/ts-loader.mdx +1 -1
  153. package/en/configure/app/tools/webpack-chain.mdx +1 -1
  154. package/en/configure/app/tools/webpack.mdx +1 -1
  155. package/en/configure/app/usage.mdx +64 -1
  156. package/en/guides/advanced-features/_category_.json +5 -0
  157. package/en/guides/advanced-features/bff/bff-proxy.mdx +1 -1
  158. package/en/guides/advanced-features/bff/frameworks.mdx +1 -1
  159. package/en/guides/advanced-features/bff/function.mdx +3 -3
  160. package/en/guides/advanced-features/code-split.mdx +2 -2
  161. package/en/guides/advanced-features/compatibility.mdx +2 -3
  162. package/en/guides/advanced-features/eslint.mdx +4 -4
  163. package/en/guides/advanced-features/low-level.mdx +1 -1
  164. package/en/guides/advanced-features/ssg.mdx +4 -5
  165. package/en/guides/advanced-features/ssr.mdx +5 -5
  166. package/en/guides/advanced-features/testing.mdx +4 -5
  167. package/en/guides/advanced-features/web-server.mdx +0 -1
  168. package/en/guides/basic-features/_category_.json +5 -0
  169. package/en/guides/basic-features/alias.mdx +1 -1
  170. package/en/guides/basic-features/data-fetch.mdx +21 -8
  171. package/en/guides/basic-features/env-vars.mdx +1 -1
  172. package/en/guides/basic-features/html.mdx +11 -11
  173. package/en/guides/basic-features/mock.mdx +21 -1
  174. package/en/guides/basic-features/proxy.mdx +2 -2
  175. package/en/guides/basic-features/routes.mdx +33 -7
  176. package/en/guides/concept/_category_.json +5 -0
  177. package/en/guides/{basic-features → concept}/builder.mdx +2 -2
  178. package/en/guides/concept/entries.mdx +11 -11
  179. package/en/guides/css/_category_.json +5 -0
  180. package/en/guides/{basic-features/css → css}/css-in-js.mdx +0 -0
  181. package/en/guides/{basic-features/css → css}/css-modules.mdx +0 -0
  182. package/en/guides/{basic-features/css → css}/less-sass.mdx +1 -1
  183. package/en/guides/{basic-features/css → css}/postcss.mdx +0 -0
  184. package/en/guides/{basic-features/css → css}/tailwindcss.mdx +0 -0
  185. package/en/guides/get-started/_category_.json +5 -0
  186. package/en/guides/get-started/introduction.mdx +34 -0
  187. package/en/guides/get-started/quick-start.mdx +2 -2
  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/config/{mwa.mdx → app.mdx} +1 -1
  192. package/en/guides/topic-detail/generator/plugin/api/hook/onForged.mdx +1 -1
  193. package/en/guides/topic-detail/generator/plugin/api/new/createElement.mdx +1 -1
  194. package/en/guides/topic-detail/generator/plugin/api/new/enableFunc.mdx +1 -1
  195. package/en/guides/topic-detail/generator/plugin/api/new/introduce.mdx +1 -1
  196. package/en/guides/topic-detail/generator/plugin/develop.mdx +3 -3
  197. package/en/guides/topic-detail/micro-frontend/c02-development.mdx +128 -61
  198. package/en/guides/topic-detail/micro-frontend/c03-main-app.mdx +72 -41
  199. package/en/guides/topic-detail/micro-frontend/c05-mixed-stack.mdx +1 -1
  200. package/en/guides/topic-detail/model/auto-actions.mdx +1 -1
  201. package/en/guides/topic-detail/model/define-model.mdx +1 -1
  202. package/en/guides/topic-detail/model/manage-effects.mdx +1 -1
  203. package/en/guides/topic-detail/model/model-communicate.mdx +1 -1
  204. package/en/guides/topic-detail/model/quick-start.mdx +2 -2
  205. package/en/guides/topic-detail/model/test-model.mdx +1 -1
  206. package/en/guides/topic-detail/model/use-model.mdx +3 -3
  207. package/en/guides/troubleshooting/_category_.json +2 -2
  208. package/en/guides/troubleshooting/cli.mdx +1 -1
  209. package/en/index.md +1 -1
  210. package/en/tutorials/first-app/_category_.json +1 -1
  211. package/en/tutorials/first-app/c01-start.mdx +0 -1
  212. package/en/tutorials/first-app/c03-css.mdx +1 -2
  213. package/en/tutorials/first-app/c06-model.mdx +1 -1
  214. package/en/tutorials/first-app/c07-container.mdx +1 -1
  215. package/en/tutorials/first-app/c08-entries.mdx +1 -2
  216. package/en/tutorials/foundations/introduction.mdx +17 -34
  217. package/package.json +3 -3
  218. package/scripts/config.ts +3 -1
  219. package/scripts/summary.en.json +1 -1
  220. package/scripts/summary.zh.json +1 -1
  221. package/zh/apis/app/commands/_category_.json +1 -4
  222. package/zh/apis/app/hooks/_category_.json +1 -4
  223. package/zh/apis/app/hooks/src/pages.mdx +1 -1
  224. package/zh/apis/app/hooks/src/routes.mdx +1 -1
  225. package/zh/apis/app/runtime/_category_.json +1 -5
  226. package/zh/apis/app/runtime/core/create-app.mdx +1 -1
  227. package/zh/apis/app/runtime/core/use-module-apps.mdx +81 -40
  228. package/zh/apis/app/runtime/model/Provider.mdx +2 -2
  229. package/zh/apis/app/runtime/model/create-app.mdx +7 -7
  230. package/zh/apis/app/runtime/model/create-store.mdx +2 -2
  231. package/zh/apis/app/runtime/model/use-local-model.mdx +1 -1
  232. package/zh/apis/app/runtime/model/use-static-model.mdx +1 -1
  233. package/zh/apis/app/runtime/model/use-store.mdx +1 -1
  234. package/zh/apis/app/runtime/testing/renderApp.mdx +1 -1
  235. package/zh/components/custom-router-micro-frontend.mdx +40 -0
  236. package/zh/components/enable-micro-frontend.mdx +12 -2
  237. package/zh/components/micro-runtime-config.mdx +9 -10
  238. package/zh/components/release-note.mdx +1 -1
  239. package/zh/configure/app/builder-plugins.mdx +3 -3
  240. package/zh/configure/app/dev/asset-prefix.mdx +1 -1
  241. package/zh/configure/app/dev/hmr.mdx +1 -1
  242. package/zh/configure/app/dev/https.mdx +1 -1
  243. package/zh/configure/app/dev/port.mdx +1 -1
  244. package/zh/configure/app/dev/progress-bar.mdx +1 -1
  245. package/zh/configure/app/dev/start-url.mdx +1 -1
  246. package/zh/configure/app/experiments/lazy-compilation.mdx +1 -1
  247. package/zh/configure/app/html/app-icon.mdx +1 -1
  248. package/zh/configure/app/html/crossorigin.mdx +1 -1
  249. package/zh/configure/app/html/disable-html-folder.mdx +1 -1
  250. package/zh/configure/app/html/favicon-by-entries.mdx +1 -1
  251. package/zh/configure/app/html/favicon.mdx +1 -1
  252. package/zh/configure/app/html/inject-by-entries.mdx +1 -1
  253. package/zh/configure/app/html/inject.mdx +1 -1
  254. package/zh/configure/app/html/meta-by-entries.mdx +1 -1
  255. package/zh/configure/app/html/meta.mdx +1 -1
  256. package/zh/configure/app/html/mount-id.mdx +1 -1
  257. package/zh/configure/app/html/tags-by-entries.mdx +1 -1
  258. package/zh/configure/app/html/tags.mdx +1 -1
  259. package/zh/configure/app/html/template-by-entries.mdx +1 -1
  260. package/zh/configure/app/html/template-parameters-by-entries.mdx +1 -1
  261. package/zh/configure/app/html/template-parameters.mdx +1 -1
  262. package/zh/configure/app/html/template.mdx +1 -1
  263. package/zh/configure/app/html/title-by-entries.mdx +1 -1
  264. package/zh/configure/app/html/title.mdx +1 -1
  265. package/zh/configure/app/output/asset-prefix.mdx +1 -1
  266. package/zh/configure/app/output/assets-retry.mdx +1 -1
  267. package/zh/configure/app/output/charset.mdx +1 -1
  268. package/zh/configure/app/output/clean-dist-path.mdx +1 -1
  269. package/zh/configure/app/output/convert-to-rem.mdx +1 -1
  270. package/zh/configure/app/output/copy.mdx +1 -1
  271. package/zh/configure/app/output/css-module-local-ident-name.mdx +1 -1
  272. package/zh/configure/app/output/data-uri-limit.mdx +1 -1
  273. package/zh/configure/app/output/disable-css-extract.mdx +1 -1
  274. package/zh/configure/app/output/disable-css-module-extension.mdx +1 -1
  275. package/zh/configure/app/output/disable-filename-hash.mdx +1 -1
  276. package/zh/configure/app/output/disable-inline-runtime-chunk.mdx +1 -1
  277. package/zh/configure/app/output/disable-minimize.mdx +1 -1
  278. package/zh/configure/app/output/disable-source-map.mdx +1 -1
  279. package/zh/configure/app/output/disable-ts-checker.mdx +1 -1
  280. package/zh/configure/app/output/dist-path.mdx +1 -1
  281. package/zh/configure/app/output/enable-asset-fallback.mdx +1 -1
  282. package/zh/configure/app/output/enable-asset-manifest.mdx +1 -1
  283. package/zh/configure/app/output/enable-css-module-tsdeclaration.mdx +1 -1
  284. package/zh/configure/app/output/enable-inline-scripts.mdx +1 -1
  285. package/zh/configure/app/output/enable-inline-styles.mdx +1 -1
  286. package/zh/configure/app/output/enable-latest-decorators.mdx +1 -1
  287. package/zh/configure/app/output/externals.mdx +1 -1
  288. package/zh/configure/app/output/filename.mdx +1 -1
  289. package/zh/configure/app/output/legal-comments.mdx +1 -1
  290. package/zh/configure/app/output/override-browserslist.mdx +1 -1
  291. package/zh/configure/app/output/polyfill.mdx +1 -1
  292. package/zh/configure/app/output/svg-default-export.mdx +1 -1
  293. package/zh/configure/app/performance/build-cache.mdx +1 -1
  294. package/zh/configure/app/performance/bundle-analyze.mdx +1 -1
  295. package/zh/configure/app/performance/chunk-split.mdx +1 -1
  296. package/zh/configure/app/performance/print-file-size.mdx +1 -1
  297. package/zh/configure/app/performance/profile.mdx +1 -1
  298. package/zh/configure/app/performance/remove-console.mdx +1 -1
  299. package/zh/configure/app/performance/remove-moment-locale.mdx +1 -1
  300. package/zh/configure/app/plugins.mdx +1 -1
  301. package/zh/configure/app/security/check-syntax.mdx +1 -1
  302. package/zh/configure/app/security/sri.mdx +1 -1
  303. package/zh/configure/app/server/ssr-by-entries.mdx +1 -1
  304. package/zh/configure/app/source/alias.mdx +1 -1
  305. package/zh/configure/app/source/compile-js-data-uri.mdx +1 -1
  306. package/zh/configure/app/source/define.mdx +1 -1
  307. package/zh/configure/app/source/exclude.mdx +1 -1
  308. package/zh/configure/app/source/global-vars.mdx +1 -1
  309. package/zh/configure/app/source/include.mdx +1 -1
  310. package/zh/configure/app/source/module-scopes.mdx +1 -1
  311. package/zh/configure/app/source/pre-entry.mdx +1 -1
  312. package/zh/configure/app/source/resolve-extension-prefix.mdx +1 -1
  313. package/zh/configure/app/source/resolve-main-fields.mdx +1 -1
  314. package/zh/configure/app/tools/autoprefixer.mdx +1 -1
  315. package/zh/configure/app/tools/babel.mdx +1 -1
  316. package/zh/configure/app/tools/css-extract.mdx +1 -1
  317. package/zh/configure/app/tools/css-loader.mdx +1 -1
  318. package/zh/configure/app/tools/dev-server.mdx +1 -1
  319. package/zh/configure/app/tools/html-plugin.mdx +1 -1
  320. package/zh/configure/app/tools/inspector.mdx +1 -1
  321. package/zh/configure/app/tools/less.mdx +1 -1
  322. package/zh/configure/app/tools/minify-css.mdx +1 -1
  323. package/zh/configure/app/tools/postcss.mdx +1 -1
  324. package/zh/configure/app/tools/pug.mdx +1 -1
  325. package/zh/configure/app/tools/rspack.mdx +13 -0
  326. package/zh/configure/app/tools/sass.mdx +1 -1
  327. package/zh/configure/app/tools/style-loader.mdx +1 -1
  328. package/zh/configure/app/tools/styled-components.mdx +1 -1
  329. package/zh/configure/app/tools/terser.mdx +1 -1
  330. package/zh/configure/app/tools/ts-checker.mdx +1 -1
  331. package/zh/configure/app/tools/ts-loader.mdx +1 -1
  332. package/zh/configure/app/tools/webpack-chain.mdx +1 -1
  333. package/zh/configure/app/tools/webpack.mdx +1 -1
  334. package/zh/configure/app/usage.mdx +64 -1
  335. package/zh/guides/advanced-features/_category_.json +2 -6
  336. package/zh/guides/advanced-features/compatibility.mdx +0 -1
  337. package/zh/guides/advanced-features/ssg.mdx +0 -1
  338. package/zh/guides/advanced-features/ssr.mdx +2 -2
  339. package/zh/guides/advanced-features/testing.mdx +0 -1
  340. package/zh/guides/advanced-features/web-server.mdx +0 -1
  341. package/zh/guides/basic-features/_category_.json +1 -5
  342. package/zh/guides/basic-features/alias.mdx +1 -1
  343. package/zh/guides/basic-features/data-fetch.mdx +35 -26
  344. package/zh/guides/basic-features/html.mdx +10 -9
  345. package/zh/guides/basic-features/mock.mdx +20 -0
  346. package/zh/guides/basic-features/routes.mdx +41 -9
  347. package/zh/guides/{basic-features → concept}/builder.mdx +2 -2
  348. package/zh/guides/concept/entries.mdx +11 -11
  349. package/zh/guides/css/_category_.json +5 -0
  350. package/zh/guides/{basic-features/css → css}/css-in-js.mdx +0 -0
  351. package/zh/guides/{basic-features/css → css}/css-modules.mdx +0 -0
  352. package/zh/guides/{basic-features/css → css}/less-sass.mdx +1 -1
  353. package/zh/guides/{basic-features/css → css}/postcss.mdx +5 -4
  354. package/zh/guides/{basic-features/css → css}/tailwindcss.mdx +0 -1
  355. package/zh/guides/get-started/introduction.mdx +31 -0
  356. package/zh/guides/get-started/quick-start.mdx +2 -3
  357. package/zh/guides/get-started/upgrade.mdx +2 -1
  358. package/zh/guides/topic-detail/_category_.json +2 -2
  359. package/zh/guides/topic-detail/generator/config/{mwa.mdx → app.mdx} +1 -1
  360. package/zh/guides/topic-detail/generator/plugin/api/input/addInputBefore.mdx +1 -1
  361. package/zh/guides/topic-detail/generator/plugin/api/new/createElement.mdx +1 -1
  362. package/zh/guides/topic-detail/generator/plugin/api/new/enableFunc.mdx +1 -1
  363. package/zh/guides/topic-detail/generator/plugin/api/new/introduce.mdx +2 -2
  364. package/zh/guides/topic-detail/generator/plugin/develop.mdx +3 -3
  365. package/zh/guides/topic-detail/micro-frontend/c02-development.mdx +155 -63
  366. package/zh/guides/topic-detail/micro-frontend/c03-main-app.mdx +71 -40
  367. package/zh/guides/topic-detail/model/model-communicate.mdx +1 -1
  368. package/zh/guides/troubleshooting/_category_.json +2 -2
  369. package/zh/index.md +1 -1
  370. package/zh/tutorials/first-app/_category_.json +1 -1
  371. package/zh/tutorials/first-app/c01-start.mdx +1 -2
  372. package/zh/tutorials/first-app/c03-css.mdx +1 -2
  373. package/zh/tutorials/first-app/c06-model.mdx +2 -2
  374. package/zh/tutorials/first-app/c07-container.mdx +1 -1
  375. package/zh/tutorials/first-app/c08-entries.mdx +2 -3
  376. package/zh/tutorials/foundations/introduction.mdx +14 -29
  377. package/en/apis/app/commands/index.mdx +0 -7
  378. package/en/apis/app/hooks/index.mdx +0 -7
  379. package/en/apis/app/runtime/index.mdx +0 -7
  380. package/en/guides/advanced-features/index.mdx +0 -7
  381. package/en/guides/basic-features/css/_category_.json +0 -4
  382. package/zh/apis/app/commands/index.mdx +0 -7
  383. package/zh/apis/app/hooks/index.mdx +0 -7
  384. package/zh/apis/app/runtime/index.mdx +0 -7
  385. package/zh/guides/advanced-features/index.mdx +0 -7
  386. package/zh/guides/basic-features/css/_category_.json +0 -4
  387. package/zh/guides/basic-features/index.mdx +0 -7
@@ -25,20 +25,31 @@ import EnableMicroFrontend from "@site-docs/components/enable-micro-frontend";
25
25
 
26
26
  <EnableMicroFrontend />
27
27
 
28
+ 这里演示主应用为自控式路由的场景,全部场景参考 [体验微前端](/guides/topic-detail/micro-frontend/c02-development.html)
28
29
  ```tsx title=App.tsx
29
30
  function App() {
30
- const { Home, Contact } = useModuleApps();
31
+ const { apps, MApp, Table, Dashboard } = useModuleApps();
32
+
33
+ // 使用的不是 MApp 组件,需要使用 createBrowserRouter 来创建路由
34
+ const router = createBrowserRouter(
35
+ createRoutesFromElements(
36
+ <Route path="/" element={<AppLayout />}>
37
+ <Route key={'table'} path={'table/*'} element={<Table />} />
38
+ <Route key={'dashboard'} path={'dashboard/*'} element={<Dashboard />} />
39
+ </Route>
40
+ )
41
+ );
31
42
 
32
43
  return (
33
- <div>
34
- Master APP
35
- <Route exact path="/home">
36
- <Home />
37
- </Route>
38
- <Route exact path="/home">
39
- <Contact />
40
- </Route>
41
- </div>
44
+ // 方法一:使用 MApp 自动根据配置的 activeWhen 参数加载子应用(本项目配置在 modern.config.ts 中)
45
+ // <BrowserRouter>
46
+ // <MApp />
47
+ // </BrowserRouter>
48
+
49
+ // 方法二:手动写 Route 组件方式加载子应用,方便于需要鉴权等需要前置操作的场景
50
+ <>
51
+ <RouterProvider router={router} />
52
+ </>
42
53
  );
43
54
  }
44
55
 
@@ -47,11 +58,11 @@ defineConfig(App, {
47
58
  apps: [
48
59
  {
49
60
  // name 区分大小写,name 提供的是什么 useModuleApps 返回的就是什么
50
- name: 'Home',
61
+ name: 'Table',
51
62
  entry: 'http://127.0.0.1:8081/',
52
63
  },
53
64
  {
54
- name: 'Contact',
65
+ name: 'Dashboard',
55
66
  entry: 'http://localhost:8082',
56
67
  },
57
68
  ],
@@ -59,7 +70,7 @@ defineConfig(App, {
59
70
  });
60
71
  ```
61
72
 
62
- 通过 `useModuleApps()` 获取到 `Home` 和 `Contact` 子应用组件(名称和配置里的 `name` 字段对应),之后就可以像使用普通的 React 组件一样去加载子应用。
73
+ 通过 `useModuleApps()` 获取到 `Table` 和 `Dashboard` 子应用组件(名称和配置里的 `name` 字段对应),之后就可以像使用普通的 React 组件一样去加载子应用。
63
74
 
64
75
  ### 集中式路由
65
76
 
@@ -89,13 +100,13 @@ defineConfig(App, {
89
100
  apps: [
90
101
  {
91
102
  // name 区分大小写,name 提供的是什么 useModuleApps 返回的就是什么
92
- name: 'Dashboard',
93
- activeWhen: '/dashboard',
103
+ name: 'Table',
104
+ activeWhen: '/table',
94
105
  entry: 'http://127.0.0.1:8081/',
95
106
  },
96
107
  {
97
- name: 'TableList',
98
- activeWhen: '/table',
108
+ name: 'Dashboard',
109
+ activeWhen: '/dashboard',
99
110
  entry: 'http://localhost:8082',
100
111
  },
101
112
  ],
@@ -103,36 +114,66 @@ defineConfig(App, {
103
114
  });
104
115
  ```
105
116
 
106
- 这样启动应用后,访问 `/dashboard` 路由,会渲染 `Dashboard` 子应用,访问 `/table` 路由,会渲染 `TableList` 子应用。
117
+ 这样启动应用后,访问 `/dashboard` 路由,会渲染 `Dashboard` 子应用,访问 `/table` 路由,会渲染 `Table` 子应用。
107
118
 
108
119
  ## 加载动画
109
120
 
110
121
  可以通过以下方式,自定义组件加载过程的过渡动画。
111
122
 
112
- ```tsx title=App.tsx
113
- function App() {
114
- const { Home } = useModuleApps();
123
+ ```js title="App.tsx"
124
+ import { useModuleApps } from '@modern-js/plugin-garfish/runtime';
115
125
 
116
- return (
117
- <div>
118
- Master APP
119
- <Route exact path="/home">
120
- <Home
121
- loadable={{
122
- loading: ({ pastDelay, error }: any) => {
123
- if (error) {
124
- console.error(error);
125
- return <div>error: {error?.message}</div>;
126
- } else if (pastDelay) {
127
- return <div>loading</div>;
128
- } else {
129
- return null;
126
+ import { RouterProvider, Route, createBrowserRouter, createRoutesFromElements, BrowserRouter, Link, Outlet } from '@modern-js/runtime/router';
127
+
128
+ const AppLayout = () => (
129
+ <>
130
+ <div><Link to={'/table'}>加载约定式路由子应用</Link></div>
131
+ <div><Link to={'/dashboard'}>加载自控式路由子应用</Link></div>
132
+ <div><Link to={'/'}>卸载子应用</Link></div>
133
+ <Outlet />
134
+ </>
135
+ )
136
+
137
+ export default () => {
138
+ const { apps } = useModuleApps();
139
+
140
+ // 使用的不是 MApp 组件,需要使用 createBrowserRouter 来创建路由
141
+ const router = createBrowserRouter(
142
+ createRoutesFromElements(
143
+ <Route path="/" element={<AppLayout />}>
144
+ {apps.map(app => {
145
+ const { Component } = app;
146
+ // 模糊匹配,path 需要写成类似 abc/* 的模式
147
+ return (
148
+ <Route
149
+ key={app.name}
150
+ path={`${app.name.toLowerCase()}/*`}
151
+ element={
152
+ <Component
153
+ loadable={{
154
+ loading: ({ pastDelay, error }: any) => {
155
+ if (error) {
156
+ return <div>error: {error?.message}</div>;
157
+ } else if (pastDelay) {
158
+ return <div>loading</div>;
159
+ } else {
160
+ return null;
161
+ }
162
+ },
163
+ }}
164
+ />
130
165
  }
131
- },
132
- }}
133
- />
166
+ />
167
+ )
168
+ })}
134
169
  </Route>
135
- </div>
170
+ )
136
171
  );
137
- }
172
+
173
+ return (
174
+ <>
175
+ <RouterProvider router={router} />
176
+ </>
177
+ );
178
+ };
138
179
  ```
@@ -21,8 +21,8 @@ interface ProviderProps {
21
21
 
22
22
  ### 参数
23
23
 
24
- - store:[`createStore`](./create-store.md) 创建的 Store 对象。
25
- - config:创建 Reduck Store 的配置,同 [`createApp`](./create-app.md) 的 `config` 参数。
24
+ - store:[`createStore`](./create-store.mdx) 创建的 Store 对象。
25
+ - config:创建 Reduck Store 的配置,同 [`createApp`](./create-app.mdx) 的 `config` 参数。
26
26
 
27
27
  ## 示例
28
28
 
@@ -29,19 +29,19 @@ function createApp(config: AppConfig): object;
29
29
  ### 参数
30
30
 
31
31
  - config:`Record<string, any>`
32
- - StoreConfig:同 [`createStore`](./create-store.md) 的参数。
32
+ - StoreConfig:同 [`createStore`](./create-store.mdx) 的参数。
33
33
  - devTools:默认值为 true。是否开启 Redux DevTools,当为对象类型时,支持配置 Redux DevTools 的 [Options](https://github.com/reduxjs/redux-devtools/blob/main/extension/docs/API/Arguments.md)。
34
- - autoActions:默认值为 true。是否[自动生成 Actions](./auto-actions.md)。
34
+ - autoActions:默认值为 true。是否[自动生成 Actions](./auto-actions.mdx)。
35
35
 
36
36
  ### 返回值
37
37
 
38
38
  Reduck App,有以下属性组成:
39
39
 
40
- - Provider:为应用局部的组件树注入共享 Store 的组件。用法同 [`Provider`](./Provider.md)。
41
- - useModel:获取应用局部 Store 挂载的 Model 对象。用法同 [`useModel`](./use-model.md)。
42
- - useStaticModel:获取应用局部 Store 挂载的 Model 对象。用法同 [`useStaticModel`](./use-static-model.md)。
43
- - useLocalModel:获取应用局部 Store 挂载的 Model 对象。用法同 [`useLocalModel`](./use-local-model.md)。
44
- - useStore:获取应用局部使用的 Store 对象。用法同 [`useStore`](./use-store.md)。
40
+ - Provider:为应用局部的组件树注入共享 Store 的组件。用法同 [`Provider`](./Provider.mdx)。
41
+ - useModel:获取应用局部 Store 挂载的 Model 对象。用法同 [`useModel`](./use-model.mdx)。
42
+ - useStaticModel:获取应用局部 Store 挂载的 Model 对象。用法同 [`useStaticModel`](./use-static-model.mdx)。
43
+ - useLocalModel:获取应用局部 Store 挂载的 Model 对象。用法同 [`useLocalModel`](./use-local-model.mdx)。
44
+ - useStore:获取应用局部使用的 Store 对象。用法同 [`useStore`](./use-store.mdx)。
45
45
 
46
46
  ## 示例
47
47
 
@@ -10,7 +10,7 @@ import ReduckTip from "@site-docs/components/reduck-tip"
10
10
 
11
11
  `createStore` 用于创建一个 Store 对象。Reduck 的 Store 基于 Redux 的 [Store](https://redux.js.org/api/store) 实现,用于存储应用的状态,同时提供一组用于管理状态和 Model 的方法。
12
12
 
13
- 一般情况下,不需要使用这个 API,只有需要完全掌控 Store 的创建时,才会使用这个 API。例如,自定义一个 Store,传入 [`Provider`](./Provider.md) 组件使用。
13
+ 一般情况下,不需要使用这个 API,只有需要完全掌控 Store 的创建时,才会使用这个 API。例如,自定义一个 Store,传入 [`Provider`](./Provider.mdx) 组件使用。
14
14
 
15
15
  ## 函数签名
16
16
 
@@ -44,7 +44,7 @@ function createStore(config: StoreConfig): ReduckStore;
44
44
 
45
45
  Reduck Store 对象:
46
46
 
47
- - use:动态挂载和获取 Model 对象。用法与 [`useModel`](./use-model.md) 相同,但可以在 React 组件外使用。
47
+ - use:动态挂载和获取 Model 对象。用法与 [`useModel`](./use-model.mdx) 相同,但可以在 React 组件外使用。
48
48
  - unmount:卸载 Model 对象,Model 的 State 会从 Store 中清除。
49
49
  - ReduxStore:Redux Store 对象具有的方法,[详见](https://redux.js.org/tutorials/fundamentals/part-4-store#redux-store)。
50
50
 
@@ -8,7 +8,7 @@ import ReduckTip from "@site-docs/components/reduck-tip"
8
8
 
9
9
  <ReduckTip />
10
10
 
11
- 用于把 Model 中的 State 作为局部状态使用,效果类似 React 的 `useState`。`useLocalModel` API 形式上与 `useModel` 完全一致。具体使用请参考 [`useModel`](./use-model.md)。
11
+ 用于把 Model 中的 State 作为局部状态使用,效果类似 React 的 `useState`。`useLocalModel` API 形式上与 `useModel` 完全一致。具体使用请参考 [`useModel`](./use-model.mdx)。
12
12
 
13
13
  #### 示例
14
14
 
@@ -8,7 +8,7 @@ import ReduckTip from "@site-docs/components/reduck-tip"
8
8
 
9
9
  <ReduckTip />
10
10
 
11
- 如果想在组件里以 React Hook 的形式消费某个 Model,并能随时获取到当前最新的状态,但又不希望 Model 状态更新的时候,引起组件的重新渲染,可以使用 `useStaticModel`。`useStaticModel` API 形式上与 `useModel` 完全一致。具体使用请参考 [`useModel`](./use-model.md)。
11
+ 如果想在组件里以 React Hook 的形式消费某个 Model,并能随时获取到当前最新的状态,但又不希望 Model 状态更新的时候,引起组件的重新渲染,可以使用 `useStaticModel`。`useStaticModel` API 形式上与 `useModel` 完全一致。具体使用请参考 [`useModel`](./use-model.mdx)。
12
12
 
13
13
  为了保证总是能获取到最新状态,注意不要对返回的 `state` 解构。
14
14
 
@@ -18,7 +18,7 @@ function useStore(): ReduckStore;
18
18
 
19
19
  ### 返回值
20
20
 
21
- - ReduckStore:Reduck Store,类型参考 [createStore](./create-store.md) 返回值。
21
+ - ReduckStore:Reduck Store,类型参考 [createStore](./create-store.mdx) 返回值。
22
22
 
23
23
  :::info 更多参考
24
24
  [使用 Model](/guides/topic-detail/model/use-model#在组件外使用)
@@ -15,7 +15,7 @@ import { renderApp } from '@modern-js/runtime/testing';
15
15
 
16
16
  ## 函数签名
17
17
 
18
- `renderApp` 和 [render](./render.md) 完全一致。
18
+ `renderApp` 和 [render](./render.mdx) 完全一致。
19
19
 
20
20
  ## 示例
21
21
 
@@ -0,0 +1,40 @@
1
+ ```js title="src/App.tsx"
2
+ import { useModuleApps } from '@modern-js/plugin-garfish/runtime';
3
+
4
+ import { RouterProvider, Route, createBrowserRouter, createRoutesFromElements, BrowserRouter, Link, Outlet } from '@modern-js/runtime/router';
5
+
6
+ const AppLayout = () => (
7
+ <>
8
+ <div><Link to={'/table'}>加载约定式路由子应用</Link></div>
9
+ <div><Link to={'/dashboard'}>加载自控式路由子应用</Link></div>
10
+ <div><Link to={'/'}>卸载子应用</Link></div>
11
+ <Outlet />
12
+ </>
13
+ )
14
+
15
+ export default () => {
16
+ const { apps, MApp, Table, Dashboard } = useModuleApps();
17
+
18
+ // 使用的不是 MApp 组件,需要使用 createBrowserRouter 来创建路由
19
+ const router = createBrowserRouter(
20
+ createRoutesFromElements(
21
+ <Route path="/" element={<AppLayout />}>
22
+ <Route key={'table'} path={'table/*'} element={<Table />} />
23
+ <Route key={'dashboard'} path={'dashboard/*'} element={<Dashboard />} />
24
+ </Route>
25
+ )
26
+ );
27
+
28
+ return (
29
+ // 方法一:使用 MApp 自动根据配置的 activeWhen 参数加载子应用(本项目配置在 modern.config.ts 中)
30
+ // <BrowserRouter>
31
+ // <MApp />
32
+ // </BrowserRouter>
33
+
34
+ // 方法二:手动写 Route 组件方式加载子应用,方便于需要鉴权等需要前置操作的场景
35
+ <>
36
+ <RouterProvider router={router} />
37
+ </>
38
+ );
39
+ };
40
+ ```
@@ -5,9 +5,19 @@ import garfishPlugin from '@modern-js/plugin-garfish';
5
5
  export default defineConfig({
6
6
  runtime: {
7
7
  router: true,
8
- state: true,
9
- masterApp: true,
8
+ masterApp: {
9
+ apps: [{
10
+ name: 'Table',
11
+ entry: 'http://localhost:8081',
12
+ // activeWhen: '/table'
13
+ }, {
14
+ name: 'Dashboard',
15
+ entry: 'http://localhost:8082'
16
+ // activeWhen: '/dashboard'
17
+ }]
18
+ },
10
19
  },
11
20
  plugins: [appTools(), garfishPlugin()],
12
21
  });
22
+
13
23
  ```
@@ -3,16 +3,15 @@ import { defineConfig } from '@modern-js/runtime';
3
3
 
4
4
  defineConfig(App, {
5
5
  masterApp: {
6
- apps: [
7
- {
8
- name: 'DashBoard',
9
- entry: 'http://127.0.0.1:8081/',
10
- },
11
- {
12
- name: 'TableList',
13
- entry: 'http://localhost:8082',
14
- },
15
- ],
6
+ apps: [{
7
+ name: 'Table',
8
+ entry: 'http://localhost:8001',
9
+ // activeWhen: '/table'
10
+ }, {
11
+ name: 'Dashboard',
12
+ entry: 'http://localhost:8002'
13
+ // activeWhen: '/dashboard'
14
+ }]
16
15
  },
17
16
  });
18
17
  ```
@@ -1 +1 @@
1
- 根据官网 [Release Note](https://github.com/modern-js-dev/modern.js/releases/tag/v1.22.1),开发者也可以手动将项目升级到想要的版本。
1
+ 根据官网 [Release Note](https://github.com/modern-js-dev/modern.js/releases),开发者也可以手动将项目升级到想要的版本。
@@ -9,7 +9,7 @@ sidebar_position: 10
9
9
 
10
10
  用于配置 Modern.js Builder 构建插件。
11
11
 
12
- Modern.js Builder 是 Modern.js 底层的构建引擎,请阅读 [构建能力](/guides/basic-features/builder) 了解相关背景。
12
+ Modern.js Builder 是 Modern.js 底层的构建引擎,请阅读 [构建能力](/guides/concept/builder) 了解相关背景。
13
13
 
14
14
  如果你想了解 Builder 插件的编写方式,可以参考 [Modern.js Builder - 插件系统](https://modernjs.dev/builder/plugins/introduction.html)。
15
15
 
@@ -17,13 +17,13 @@ Modern.js Builder 是 Modern.js 底层的构建引擎,请阅读 [构建能力]
17
17
 
18
18
  该选项**用于配置 Modern.js Builder 构建插件**,如果你需要配置其他类型的插件,请选择对应的配置方式:
19
19
 
20
- - 配置 Modern.js 框架插件,请使用 [plugins](docs/configure/app/plugins) 配置项。
20
+ - 配置 Modern.js 框架插件,请使用 [plugins](/configure/app/plugins) 配置项。
21
21
  - 配置 webpack 插件,请使用 [tools.webpack](/configure/app/tools/webpack) 或 [tools.webpackChain](/configure/app/tools/webpack-chain) 配置项。
22
22
  - 配置 Babel 插件,请使用 [tools.babel](/configure/app/tools/babel) 配置项。
23
23
 
24
24
  ## 何时使用
25
25
 
26
- 大部分场景下,我们推荐你使用 Modern.js 框架插件,框架插件可以通过 [plugins](docs/configure/app/plugins) 字段进行注册。因为框架插件提供的 API 更丰富、能力更强,而 Builder 插件提供的 API 只能用于构建场景。
26
+ 大部分场景下,我们推荐你使用 Modern.js 框架插件,框架插件可以通过 [plugins](/configure/app/plugins) 字段进行注册。因为框架插件提供的 API 更丰富、能力更强,而 Builder 插件提供的 API 只能用于构建场景。
27
27
 
28
28
  当你需要引用一些现有的 Builder 插件(并且在 Modern.js 中没有相关能力),或是在不同的框架之间复用 Builder 插件时,你可以使用 `builderPlugins` 字段进行注册。
29
29
 
@@ -5,7 +5,7 @@ sidebar_label: assetPrefix
5
5
  # dev.assetPrefix
6
6
 
7
7
  :::tip
8
- 该配置由 Modern.js Builder 提供,更多信息可参考 [dev.assetPrefix](https://modernjs.dev/builder/api/config-dev.html#dev-assetprefix)。
8
+ 该配置由 Modern.js Builder 提供,更多信息可参考 [dev.assetPrefix](https://modernjs.dev/builder/api/config-dev.html#devassetprefix)。
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/zh/config/dev/assetPrefix.md'
@@ -5,7 +5,7 @@ sidebar_label: hmr
5
5
  # dev.hmr
6
6
 
7
7
  :::tip
8
- 该配置由 Modern.js Builder 提供,更多信息可参考 [dev.hmr](https://modernjs.dev/builder/api/config-dev.html#dev-hmr)。
8
+ 该配置由 Modern.js Builder 提供,更多信息可参考 [dev.hmr](https://modernjs.dev/builder/api/config-dev.html#devhmr)。
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/zh/config/dev/hmr.md'
@@ -5,7 +5,7 @@ sidebar_label: https
5
5
  # dev.https
6
6
 
7
7
  :::tip
8
- 该配置由 Modern.js Builder 提供,更多信息可参考 [dev.https](https://modernjs.dev/builder/api/config-dev.html#dev-https)。
8
+ 该配置由 Modern.js Builder 提供,更多信息可参考 [dev.https](https://modernjs.dev/builder/api/config-dev.html#devhttps)。
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/zh/config/dev/https.md'
@@ -5,7 +5,7 @@ sidebar_label: port
5
5
  # dev.port
6
6
 
7
7
  :::tip
8
- 该配置由 Modern.js Builder 提供,更多信息可参考 [dev.port](https://modernjs.dev/builder/api/config-dev.html#dev-port)。
8
+ 该配置由 Modern.js Builder 提供,更多信息可参考 [dev.port](https://modernjs.dev/builder/api/config-dev.html#devport)。
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/zh/config/dev/port.md'
@@ -5,7 +5,7 @@ sidebar_label: progressBar
5
5
  # dev.progressBar
6
6
 
7
7
  :::tip
8
- 该配置由 Modern.js Builder 提供,更多信息可参考 [dev.progressBar](https://modernjs.dev/builder/api/config-dev.html#dev-progressbar)。
8
+ 该配置由 Modern.js Builder 提供,更多信息可参考 [dev.progressBar](https://modernjs.dev/builder/api/config-dev.html#devprogressbar)。
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/zh/config/dev/progressBar.md'
@@ -5,7 +5,7 @@ sidebar_label: startUrl
5
5
  # dev.startUrl
6
6
 
7
7
  :::tip
8
- 该配置由 Modern.js Builder 提供,更多信息可参考 [dev.startUrl](https://modernjs.dev/builder/api/config-dev.html#dev-starturl)。
8
+ 该配置由 Modern.js Builder 提供,更多信息可参考 [dev.startUrl](https://modernjs.dev/builder/api/config-dev.html#devstarturl)。
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/zh/config/dev/startUrl.md'
@@ -5,7 +5,7 @@ sidebar_label: lazyCompilation
5
5
  # experiments.lazyCompilation
6
6
 
7
7
  :::tip
8
- 该配置由 Modern.js Builder 提供,更多信息可参考 [experiments.lazyCompilation](https://modernjs.dev/builder/api/config-experiments.html#experiments-lazycompilation)。
8
+ 该配置由 Modern.js Builder 提供,更多信息可参考 [experiments.lazyCompilation](https://modernjs.dev/builder/api/config-experiments.html#experimentslazycompilation)。
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/zh/config/experiments/lazyCompilation.md'
@@ -5,7 +5,7 @@ sidebar_label: appIcon
5
5
  # html.appIcon
6
6
 
7
7
  :::tip
8
- 该配置由 Modern.js Builder 提供,更多信息可参考 [html.appIcon](https://modernjs.dev/builder/api/config-html.html#html-appicon)。
8
+ 该配置由 Modern.js Builder 提供,更多信息可参考 [html.appIcon](https://modernjs.dev/builder/api/config-html.html#htmlappicon)。
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/zh/config/html/appIcon.md'
@@ -5,7 +5,7 @@ sidebar_label: crossorigin
5
5
  # html.crossorigin
6
6
 
7
7
  :::tip
8
- 该配置由 Modern.js Builder 提供,更多信息可参考 [html.crossorigin](https://modernjs.dev/builder/api/config-html.html#html-crossorigin)。
8
+ 该配置由 Modern.js Builder 提供,更多信息可参考 [html.crossorigin](https://modernjs.dev/builder/api/config-html.html#htmlcrossorigin)。
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/zh/config/html/crossorigin.md'
@@ -5,7 +5,7 @@ sidebar_label: disableHtmlFolder
5
5
  # html.disableHtmlFolder
6
6
 
7
7
  :::tip
8
- 该配置由 Modern.js Builder 提供,更多信息可参考 [html.disableHtmlFolder](https://modernjs.dev/builder/api/config-html.html#html-disablehtmlfolder)。
8
+ 该配置由 Modern.js Builder 提供,更多信息可参考 [html.disableHtmlFolder](https://modernjs.dev/builder/api/config-html.html#htmldisablehtmlfolder)。
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/zh/config/html/disableHtmlFolder.md'
@@ -5,7 +5,7 @@ sidebar_label: faviconByEntries
5
5
  # html.faviconByEntries
6
6
 
7
7
  :::tip
8
- 该配置由 Modern.js Builder 提供,更多信息可参考 [html.faviconByEntries](https://modernjs.dev/builder/api/config-html.html#html-faviconbyentries)。
8
+ 该配置由 Modern.js Builder 提供,更多信息可参考 [html.faviconByEntries](https://modernjs.dev/builder/api/config-html.html#htmlfaviconbyentries)。
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/zh/config/html/faviconByEntries.md'
@@ -5,7 +5,7 @@ sidebar_label: favicon
5
5
  # html.favicon
6
6
 
7
7
  :::tip
8
- 该配置由 Modern.js Builder 提供,更多信息可参考 [html.favicon](https://modernjs.dev/builder/api/config-html.html#html-favicon)。
8
+ 该配置由 Modern.js Builder 提供,更多信息可参考 [html.favicon](https://modernjs.dev/builder/api/config-html.html#htmlfavicon)。
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/zh/config/html/favicon.md'
@@ -5,7 +5,7 @@ sidebar_label: injectByEntries
5
5
  # html.injectByEntries
6
6
 
7
7
  :::tip
8
- 该配置由 Modern.js Builder 提供,更多信息可参考 [html.injectByEntries](https://modernjs.dev/builder/api/config-html.html#html-injectbyentries)。
8
+ 该配置由 Modern.js Builder 提供,更多信息可参考 [html.injectByEntries](https://modernjs.dev/builder/api/config-html.html#htmlinjectbyentries)。
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/zh/config/html/injectByEntries.md'
@@ -5,7 +5,7 @@ sidebar_label: inject
5
5
  # html.inject
6
6
 
7
7
  :::tip
8
- 该配置由 Modern.js Builder 提供,更多信息可参考 [html.inject](https://modernjs.dev/builder/api/config-html.html#html-inject)。
8
+ 该配置由 Modern.js Builder 提供,更多信息可参考 [html.inject](https://modernjs.dev/builder/api/config-html.html#htmlinject)。
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/zh/config/html/inject.md'
@@ -5,7 +5,7 @@ sidebar_label: metaByEntries
5
5
  # html.metaByEntries
6
6
 
7
7
  :::tip
8
- 该配置由 Modern.js Builder 提供,更多信息可参考 [html.metaByEntries](https://modernjs.dev/builder/api/config-html.html#html-metabyentries)。
8
+ 该配置由 Modern.js Builder 提供,更多信息可参考 [html.metaByEntries](https://modernjs.dev/builder/api/config-html.html#htmlmetabyentries)。
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/zh/config/html/metaByEntries.md'
@@ -5,7 +5,7 @@ sidebar_label: meta
5
5
  # html.meta
6
6
 
7
7
  :::tip
8
- 该配置由 Modern.js Builder 提供,更多信息可参考 [html.meta](https://modernjs.dev/builder/api/config-html.html#html-meta)。
8
+ 该配置由 Modern.js Builder 提供,更多信息可参考 [html.meta](https://modernjs.dev/builder/api/config-html.html#htmlmeta)。
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/zh/config/html/meta.md'
@@ -5,7 +5,7 @@ sidebar_label: mountId
5
5
  # html.mountId
6
6
 
7
7
  :::tip
8
- 该配置由 Modern.js Builder 提供,更多信息可参考 [html.mountId](https://modernjs.dev/builder/api/config-html.html#html-mountid)。
8
+ 该配置由 Modern.js Builder 提供,更多信息可参考 [html.mountId](https://modernjs.dev/builder/api/config-html.html#htmlmountid)。
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/zh/config/html/mountId.md'
@@ -5,7 +5,7 @@ sidebar_label: tagsByEntries
5
5
  # html.tagsByEntries
6
6
 
7
7
  :::tip
8
- 该配置由 Modern.js Builder 提供,更多信息可参考 [html.tagsByEntries](https://modernjs.dev/builder/api/config-html.html#html-tagsbyentries)。
8
+ 该配置由 Modern.js Builder 提供,更多信息可参考 [html.tagsByEntries](https://modernjs.dev/builder/api/config-html.html#htmltagsbyentries)。
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/zh/config/html/tagsByEntries.md'
@@ -5,7 +5,7 @@ sidebar_label: tags
5
5
  # html.tags
6
6
 
7
7
  :::tip
8
- 该配置由 Modern.js Builder 提供,更多信息可参考 [html.tags](https://modernjs.dev/builder/api/config-html.html#html-tags)。
8
+ 该配置由 Modern.js Builder 提供,更多信息可参考 [html.tags](https://modernjs.dev/builder/api/config-html.html#htmltags)。
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/zh/config/html/tags.md'
@@ -5,7 +5,7 @@ sidebar_label: templateByEntries
5
5
  # html.templateByEntries
6
6
 
7
7
  :::tip
8
- 该配置由 Modern.js Builder 提供,更多信息可参考 [html.templateByEntries](https://modernjs.dev/builder/api/config-html.html#html-templatebyentries)。
8
+ 该配置由 Modern.js Builder 提供,更多信息可参考 [html.templateByEntries](https://modernjs.dev/builder/api/config-html.html#htmltemplatebyentries)。
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/zh/config/html/templateByEntries.md'
@@ -5,7 +5,7 @@ sidebar_label: templateParametersByEntries
5
5
  # html.templateParametersByEntries
6
6
 
7
7
  :::tip
8
- 该配置由 Modern.js Builder 提供,更多信息可参考 [html.templateParametersByEntries](https://modernjs.dev/builder/api/config-html.html#html-templateparametersbyentries)。
8
+ 该配置由 Modern.js Builder 提供,更多信息可参考 [html.templateParametersByEntries](https://modernjs.dev/builder/api/config-html.html#htmltemplateparametersbyentries)。
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/zh/config/html/templateParametersByEntries.md'
@@ -5,7 +5,7 @@ sidebar_label: templateParameters
5
5
  # html.templateParameters
6
6
 
7
7
  :::tip
8
- 该配置由 Modern.js Builder 提供,更多信息可参考 [html.templateParameters](https://modernjs.dev/builder/api/config-html.html#html-templateparameters)。
8
+ 该配置由 Modern.js Builder 提供,更多信息可参考 [html.templateParameters](https://modernjs.dev/builder/api/config-html.html#htmltemplateparameters)。
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/zh/config/html/templateParameters.md'
@@ -5,7 +5,7 @@ sidebar_label: template
5
5
  # html.template
6
6
 
7
7
  :::tip
8
- 该配置由 Modern.js Builder 提供,更多信息可参考 [html.template](https://modernjs.dev/builder/api/config-html.html#html-template)。
8
+ 该配置由 Modern.js Builder 提供,更多信息可参考 [html.template](https://modernjs.dev/builder/api/config-html.html#htmltemplate)。
9
9
  :::
10
10
 
11
11
  import Main from '@modern-js/builder-doc/docs/zh/config/html/template.md'