@modern-js/main-doc 2.0.2 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +1 -1
- package/en/docusaurus-plugin-content-docs/current/apis/app/commands/index.md +0 -5
- package/en/docusaurus-plugin-content-docs/current/apis/app/commands/lint.md +1 -1
- package/en/docusaurus-plugin-content-docs/current/apis/app/commands/serve.md +2 -4
- package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/api/framework/lambda.md +12 -12
- package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/api/functions/api.md +13 -13
- package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/api/functions/app.md +0 -2
- package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/api/functions/common.md +1 -3
- package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/src/app.md +16 -9
- package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/src/index_.md +0 -1
- package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/src/routes.md +5 -3
- package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/src/server.md +6 -4
- package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/src/stories.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/apis/app/hooks/src/test.md +1 -1
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/app/define-config.md +0 -1
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/bff/hook.md +3 -3
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/core/bootstrap.md +3 -6
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/core/create-app.md +1 -3
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/core/use-loader.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/core/use-module-apps.md +58 -51
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/core/use-runtime-context.md +3 -4
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/index.md +0 -5
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/model/Provider.md +1 -1
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/model/connect.md +8 -5
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/model/create-store.md +1 -3
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/model/handle-effect.md +3 -3
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/model/model_.md +0 -1
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/model/use-model.md +0 -3
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/model/use-store.md +0 -2
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/router/router.md +23 -54
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/ssr/no-ssr.md +1 -8
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/ssr/pre-render.md +10 -6
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/testing/render.md +0 -2
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/utility/css-in-js.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/utility/head.md +3 -5
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/utility/loadable.md +14 -15
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/web-server/hook.md +4 -5
- package/en/docusaurus-plugin-content-docs/current/apis/app/runtime/web-server/middleware.md +7 -6
- package/en/docusaurus-plugin-content-docs/current/components/command-tip.md +3 -2
- package/en/docusaurus-plugin-content-docs/current/components/debug-app.md +17 -0
- package/en/docusaurus-plugin-content-docs/current/components/enable-bff.md +10 -14
- package/en/docusaurus-plugin-content-docs/current/components/enable-micro-frontend.md +4 -4
- package/en/docusaurus-plugin-content-docs/current/components/global-proxy-config.md +6 -9
- package/en/docusaurus-plugin-content-docs/current/components/global-proxy.md +0 -1
- package/en/docusaurus-plugin-content-docs/current/components/micro-master-manifest-config.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/components/micro-runtime-config.md +1 -1
- package/en/docusaurus-plugin-content-docs/current/components/prerequisites.md +19 -0
- package/en/docusaurus-plugin-content-docs/current/components/reduck-migration.md +0 -1
- package/en/docusaurus-plugin-content-docs/current/components/reduck-tip.md +1 -1
- package/en/docusaurus-plugin-content-docs/current/components/router-legacy-tip.md +0 -1
- package/en/docusaurus-plugin-content-docs/current/configure/app/auto-load-plugin.md +8 -9
- package/en/docusaurus-plugin-content-docs/current/configure/app/bff/prefix.md +6 -6
- package/en/docusaurus-plugin-content-docs/current/configure/app/bff/proxy.md +8 -9
- package/en/docusaurus-plugin-content-docs/current/configure/app/builder-plugins.md +6 -6
- package/en/docusaurus-plugin-content-docs/current/configure/app/deploy/microFrontend.md +11 -13
- package/en/docusaurus-plugin-content-docs/current/configure/app/dev/asset-prefix.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/dev/hmr.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/dev/https.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/dev/port.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/dev/progress-bar.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/dev/proxy.md +0 -1
- package/en/docusaurus-plugin-content-docs/current/configure/app/dev/start-url.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/experiments/lazy-compilation.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/app-icon.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/crossorigin.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/disable-html-folder.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/favicon-by-entries.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/favicon.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/inject-by-entries.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/inject.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/meta-by-entries.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/meta.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/mount-id.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/tags-by-entries.md +12 -0
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/tags.md +12 -0
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/template-by-entries.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/template-parameters-by-entries.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/template-parameters.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/template.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/title-by-entries.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/html/title.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/asset-prefix.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/assets-retry.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/charset.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/clean-dist-path.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/convert-to-rem.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/copy.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/css-module-local-ident-name.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/data-uri-limit.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-css-extract.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-css-module-extension.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-filename-hash.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-inline-runtime-chunk.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-minimize.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-node-polyfill.md +8 -6
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-source-map.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/disable-ts-checker.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/dist-path.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/enable-asset-fallback.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/enable-asset-manifest.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/enable-css-module-tsdeclaration.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/enable-inline-scripts.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/enable-inline-styles.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/enable-latest-decorators.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/externals.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/filename.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/legal-comments.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/override-browserslist.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/polyfill.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/ssg.md +3 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/output/svg-default-export.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/performance/build-cache.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/performance/bundle-analyze.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/performance/chunk-split.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/performance/print-file-size.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/performance/profile.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/performance/remove-console.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/performance/remove-moment-locale.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/plugins.md +6 -6
- package/en/docusaurus-plugin-content-docs/current/configure/app/runtime/intro.md +11 -10
- package/en/docusaurus-plugin-content-docs/current/configure/app/runtime/master-app.md +1 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/runtime/router.md +7 -7
- package/en/docusaurus-plugin-content-docs/current/configure/app/runtime/state.md +15 -15
- package/en/docusaurus-plugin-content-docs/current/configure/app/security/sri.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/server/base-url.md +3 -4
- package/en/docusaurus-plugin-content-docs/current/configure/app/server/enable-framework-ext.md +5 -4
- package/en/docusaurus-plugin-content-docs/current/configure/app/server/port.md +24 -4
- package/en/docusaurus-plugin-content-docs/current/configure/app/server/public-routes.md +6 -6
- package/en/docusaurus-plugin-content-docs/current/configure/app/server/routes.md +7 -7
- package/en/docusaurus-plugin-content-docs/current/configure/app/server/ssr-by-entries.md +5 -5
- package/en/docusaurus-plugin-content-docs/current/configure/app/server/ssr.md +4 -4
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/alias.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/compile-js-data-uri.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/config-dir.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/define.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/design-system.md +656 -634
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/disable-default-entries.md +1 -1
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/disable-entry-dirs.md +8 -8
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/enable-async-entry.md +1 -1
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/entries-dir.md +7 -7
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/entries.md +4 -6
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/exclude.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/global-vars.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/include.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/module-scopes.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/pre-entry.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/resolve-extension-prefix.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/source/resolve-main-fields.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/autoprefixer.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/babel.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/css-extract.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/css-loader.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/dev-server.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/html-plugin.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/inspector.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/jest.md +9 -9
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/less.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/minify-css.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/postcss.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/pug.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/sass.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/style-loader.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/styled-components.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/swc.md +12 -1
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/terser.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/ts-checker.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/ts-loader.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/webpack-chain.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/configure/app/tools/webpack.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/bff/frameworks.md +6 -6
- package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/bff/function.md +44 -38
- package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/bff/index.md +9 -9
- package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/bff/type.md +0 -1
- package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/code-split.md +3 -4
- package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/compatibility.md +6 -7
- package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/eslint.md +0 -1
- package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/index.md +0 -5
- package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/low-level.md +17 -19
- package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/ssg.md +8 -10
- package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/ssr.md +5 -11
- package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/testing.md +3 -3
- package/en/docusaurus-plugin-content-docs/current/guides/advanced-features/web-server.md +3 -4
- package/en/docusaurus-plugin-content-docs/current/guides/basic-features/alias.md +7 -11
- package/en/docusaurus-plugin-content-docs/current/guides/basic-features/css/css-in-js.md +6 -6
- package/en/docusaurus-plugin-content-docs/current/guides/basic-features/css/css-modules.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/guides/basic-features/css/less-sass.md +1 -2
- package/en/docusaurus-plugin-content-docs/current/guides/basic-features/css/postcss.md +43 -47
- package/en/docusaurus-plugin-content-docs/current/guides/basic-features/css/tailwindcss.md +3 -3
- package/en/docusaurus-plugin-content-docs/current/guides/basic-features/data-fetch.md +106 -192
- package/en/docusaurus-plugin-content-docs/current/guides/basic-features/env-vars.md +8 -8
- package/en/docusaurus-plugin-content-docs/current/guides/basic-features/html.md +55 -47
- package/en/docusaurus-plugin-content-docs/current/guides/basic-features/mock.md +4 -4
- package/en/docusaurus-plugin-content-docs/current/guides/basic-features/proxy.md +4 -5
- package/en/docusaurus-plugin-content-docs/current/guides/basic-features/routes.md +90 -9
- package/en/docusaurus-plugin-content-docs/current/guides/concept/entries.md +1 -2
- package/en/docusaurus-plugin-content-docs/current/guides/get-started/quick-start.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/guides/get-started/upgrade.md +1 -1
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/framework-plugin/extend.md +13 -13
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/framework-plugin/hook-list.md +2 -2
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/framework-plugin/hook.md +57 -54
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/framework-plugin/implement.md +11 -11
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/framework-plugin/lifecycle.md +0 -1
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/framework-plugin/plugin-api.md +4 -4
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/api/app.md +33 -33
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/api/ejs.md +3 -3
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/api/fs.md +3 -3
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/api/git.md +3 -2
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/api/handlebars.md +3 -4
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/api/json.md +9 -12
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/api/npm.md +2 -3
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/introduce.md +4 -3
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/run-in-js.md +4 -5
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/codesmith/structure.md +13 -11
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/config/common.md +18 -27
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/abstract.md +1 -4
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/api/file/introduce.md +1 -1
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/api/file/updateJSONFile.md +4 -5
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/api/hook/onForged.md +0 -1
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/api/input/addInputAfter.md +1 -4
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/api/input/addInputBefore.md +1 -3
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/api/input/setInput.md +1 -1
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/api/input/type.md +1 -1
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/api/introduce.md +8 -9
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/develop.md +11 -12
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/plugin/use.md +8 -8
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/generator/project.md +1 -2
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/micro-frontend/c01-introduction.md +7 -8
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/micro-frontend/c02-development.md +18 -21
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/micro-frontend/c03-main-app.md +41 -44
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/micro-frontend/c04-communicate.md +7 -5
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/micro-frontend/c05-mixed-stack.md +1 -1
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/auto-actions.md +0 -1
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/computed-state.md +0 -2
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/define-model.md +3 -6
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/faq.md +2 -5
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/manage-effects.md +2 -5
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/model-communicate.md +1 -4
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/performance.md +1 -5
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/quick-start.md +0 -6
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/redux-integration.md +3 -2
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/test-model.md +1 -1
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/typescript-best-practice.md +13 -14
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/use-model.md +14 -12
- package/en/docusaurus-plugin-content-docs/current/guides/topic-detail/model/use-out-of-modernjs.md +4 -6
- package/en/docusaurus-plugin-content-docs/current/tutorials/first-app/c01-start.md +19 -19
- package/en/docusaurus-plugin-content-docs/current/tutorials/first-app/c02-component.md +11 -11
- package/en/docusaurus-plugin-content-docs/current/tutorials/first-app/c03-css.md +52 -55
- package/en/docusaurus-plugin-content-docs/current/tutorials/first-app/c04-routes.md +23 -23
- package/en/docusaurus-plugin-content-docs/current/tutorials/first-app/c05-loader.md +12 -11
- package/en/docusaurus-plugin-content-docs/current/tutorials/first-app/c06-model.md +28 -28
- package/en/docusaurus-plugin-content-docs/current/tutorials/first-app/c07-container.md +25 -26
- package/en/docusaurus-plugin-content-docs/current/tutorials/first-app/c08-entries.md +36 -38
- package/en/docusaurus-plugin-content-docs/current.json +3 -47
- package/package.json +3 -3
- package/scripts/config.ts +4 -2
- package/scripts/summary.en.json +1 -1
- package/scripts/summary.zh.json +1 -1
- package/scripts/sync.ts +1 -1
- package/zh/apis/app/commands/index.md +0 -5
- package/zh/apis/app/commands/lint.md +1 -1
- package/zh/apis/app/commands/serve.md +2 -4
- package/zh/apis/app/hooks/api/framework/lambda.md +12 -12
- package/zh/apis/app/hooks/api/functions/api.md +13 -13
- package/zh/apis/app/hooks/api/functions/app.md +0 -2
- package/zh/apis/app/hooks/api/functions/common.md +1 -1
- package/zh/apis/app/hooks/index.md +0 -5
- package/zh/apis/app/hooks/shared.md +0 -1
- package/zh/apis/app/hooks/src/app.md +16 -9
- package/zh/apis/app/hooks/src/index_.md +0 -2
- package/zh/apis/app/hooks/src/routes.md +6 -7
- package/zh/apis/app/hooks/src/server.md +6 -4
- package/zh/apis/app/hooks/src/stories.md +1 -1
- package/zh/apis/app/hooks/src/test.md +1 -1
- package/zh/apis/app/runtime/app/define-config.md +1 -2
- package/zh/apis/app/runtime/bff/hook.md +3 -3
- package/zh/apis/app/runtime/core/bootstrap.md +2 -3
- package/zh/apis/app/runtime/core/use-loader.md +2 -2
- package/zh/apis/app/runtime/core/use-module-apps.md +53 -50
- package/zh/apis/app/runtime/core/use-runtime-context.md +3 -4
- package/zh/apis/app/runtime/index.md +0 -5
- package/zh/apis/app/runtime/model/Provider.md +1 -0
- package/zh/apis/app/runtime/model/auto-actions.md +1 -1
- package/zh/apis/app/runtime/model/connect.md +9 -5
- package/zh/apis/app/runtime/model/create-app.md +3 -3
- package/zh/apis/app/runtime/model/create-store.md +2 -4
- package/zh/apis/app/runtime/model/handle-effect.md +3 -4
- package/zh/apis/app/runtime/model/model_.md +0 -3
- package/zh/apis/app/runtime/model/use-local-model.md +0 -1
- package/zh/apis/app/runtime/model/use-store.md +0 -2
- package/zh/apis/app/runtime/router/router.md +23 -53
- package/zh/apis/app/runtime/ssr/no-ssr.md +1 -5
- package/zh/apis/app/runtime/ssr/pre-render.md +10 -6
- package/zh/apis/app/runtime/testing/cleanup.md +2 -2
- package/zh/apis/app/runtime/testing/render.md +0 -2
- package/zh/apis/app/runtime/utility/css-in-js.md +2 -2
- package/zh/apis/app/runtime/utility/head.md +3 -5
- package/zh/apis/app/runtime/utility/loadable.md +14 -15
- package/zh/apis/app/runtime/web-server/hook.md +5 -4
- package/zh/apis/app/runtime/web-server/middleware.md +8 -6
- package/zh/apis/monorepo/commands/bump.md +1 -1
- package/zh/apis/monorepo/commands/change.md +3 -2
- package/zh/apis/monorepo/commands/gen-release-note.md +1 -2
- package/zh/apis/monorepo/commands/index.md +1 -6
- package/zh/apis/monorepo/commands/lint.md +1 -1
- package/zh/apis/monorepo/commands/release.md +0 -1
- package/zh/apis/monorepo/hooks/index.md +1 -6
- package/zh/components/command-tip.md +3 -2
- package/zh/components/enable-bff.md +10 -14
- package/zh/components/enable-micro-frontend.md +4 -4
- package/zh/components/global-proxy-config.md +6 -9
- package/zh/components/global-proxy.md +0 -1
- package/zh/components/init-app.md +0 -1
- package/zh/components/micro-master-manifest-config.md +2 -2
- package/zh/components/micro-runtime-config.md +1 -1
- package/zh/components/reduck-migration.md +0 -1
- package/zh/components/router-legacy-tip.md +0 -1
- package/zh/configure/app/auto-load-plugin.md +9 -10
- package/zh/configure/app/bff/prefix.md +6 -10
- package/zh/configure/app/bff/proxy.md +9 -8
- package/zh/configure/app/builder-plugins.md +6 -6
- package/zh/configure/app/deploy/microFrontend.md +11 -11
- package/zh/configure/app/dev/asset-prefix.md +2 -2
- package/zh/configure/app/dev/hmr.md +2 -2
- package/zh/configure/app/dev/https.md +2 -2
- package/zh/configure/app/dev/port.md +2 -2
- package/zh/configure/app/dev/progress-bar.md +2 -2
- package/zh/configure/app/dev/proxy.md +0 -1
- package/zh/configure/app/dev/start-url.md +2 -2
- package/zh/configure/app/experiments/lazy-compilation.md +2 -2
- package/zh/configure/app/html/app-icon.md +2 -2
- package/zh/configure/app/html/crossorigin.md +2 -2
- package/zh/configure/app/html/disable-html-folder.md +2 -2
- package/zh/configure/app/html/favicon-by-entries.md +2 -2
- package/zh/configure/app/html/favicon.md +2 -2
- package/zh/configure/app/html/inject-by-entries.md +2 -2
- package/zh/configure/app/html/inject.md +2 -2
- package/zh/configure/app/html/meta-by-entries.md +2 -2
- package/zh/configure/app/html/meta.md +2 -2
- package/zh/configure/app/html/mount-id.md +2 -2
- package/zh/configure/app/html/tags-by-entries.md +12 -0
- package/zh/configure/app/html/tags.md +12 -0
- package/zh/configure/app/html/template-by-entries.md +2 -2
- package/zh/configure/app/html/template-parameters-by-entries.md +2 -2
- package/zh/configure/app/html/template-parameters.md +2 -2
- package/zh/configure/app/html/template.md +2 -2
- package/zh/configure/app/html/title-by-entries.md +2 -2
- package/zh/configure/app/html/title.md +2 -2
- package/zh/configure/app/output/asset-prefix.md +2 -2
- package/zh/configure/app/output/assets-retry.md +2 -2
- package/zh/configure/app/output/charset.md +2 -2
- package/zh/configure/app/output/clean-dist-path.md +2 -2
- package/zh/configure/app/output/convert-to-rem.md +2 -2
- package/zh/configure/app/output/copy.md +2 -2
- package/zh/configure/app/output/css-module-local-ident-name.md +2 -2
- package/zh/configure/app/output/data-uri-limit.md +2 -2
- package/zh/configure/app/output/disable-css-extract.md +2 -2
- package/zh/configure/app/output/disable-css-module-extension.md +2 -2
- package/zh/configure/app/output/disable-filename-hash.md +2 -2
- package/zh/configure/app/output/disable-inline-runtime-chunk.md +2 -2
- package/zh/configure/app/output/disable-minimize.md +2 -2
- package/zh/configure/app/output/disable-node-polyfill.md +8 -8
- package/zh/configure/app/output/disable-source-map.md +2 -2
- package/zh/configure/app/output/disable-ts-checker.md +2 -2
- package/zh/configure/app/output/dist-path.md +2 -2
- package/zh/configure/app/output/enable-asset-fallback.md +2 -2
- package/zh/configure/app/output/enable-asset-manifest.md +2 -2
- package/zh/configure/app/output/enable-css-module-tsdeclaration.md +2 -2
- package/zh/configure/app/output/enable-inline-scripts.md +2 -2
- package/zh/configure/app/output/enable-inline-styles.md +2 -2
- package/zh/configure/app/output/enable-latest-decorators.md +2 -2
- package/zh/configure/app/output/externals.md +2 -2
- package/zh/configure/app/output/filename.md +2 -2
- package/zh/configure/app/output/legal-comments.md +2 -2
- package/zh/configure/app/output/override-browserslist.md +2 -2
- package/zh/configure/app/output/polyfill.md +2 -2
- package/zh/configure/app/output/ssg.md +3 -2
- package/zh/configure/app/output/svg-default-export.md +2 -2
- package/zh/configure/app/performance/build-cache.md +2 -2
- package/zh/configure/app/performance/bundle-analyze.md +2 -2
- package/zh/configure/app/performance/chunk-split.md +2 -2
- package/zh/configure/app/performance/print-file-size.md +2 -2
- package/zh/configure/app/performance/profile.md +2 -2
- package/zh/configure/app/performance/remove-console.md +2 -2
- package/zh/configure/app/performance/remove-moment-locale.md +2 -2
- package/zh/configure/app/plugins.md +6 -6
- package/zh/configure/app/runtime/intro.md +39 -11
- package/zh/configure/app/runtime/master-app.md +1 -2
- package/zh/configure/app/runtime/router.md +6 -7
- package/zh/configure/app/runtime/state.md +15 -16
- package/zh/configure/app/security/sri.md +2 -2
- package/zh/configure/app/server/base-url.md +3 -6
- package/zh/configure/app/server/enable-framework-ext.md +5 -4
- package/zh/configure/app/server/port.md +24 -6
- package/zh/configure/app/server/public-routes.md +6 -8
- package/zh/configure/app/server/routes.md +6 -6
- package/zh/configure/app/server/ssr-by-entries.md +5 -8
- package/zh/configure/app/server/ssr.md +4 -5
- package/zh/configure/app/source/alias.md +2 -2
- package/zh/configure/app/source/compile-js-data-uri.md +2 -2
- package/zh/configure/app/source/config-dir.md +2 -2
- package/zh/configure/app/source/define.md +2 -2
- package/zh/configure/app/source/design-system.md +656 -630
- package/zh/configure/app/source/disable-default-entries.md +3 -3
- package/zh/configure/app/source/disable-entry-dirs.md +8 -7
- package/zh/configure/app/source/enable-async-entry.md +3 -3
- package/zh/configure/app/source/entries-dir.md +7 -7
- package/zh/configure/app/source/entries.md +5 -6
- package/zh/configure/app/source/exclude.md +2 -2
- package/zh/configure/app/source/global-vars.md +2 -2
- package/zh/configure/app/source/include.md +2 -2
- package/zh/configure/app/source/module-scopes.md +2 -2
- package/zh/configure/app/source/pre-entry.md +2 -2
- package/zh/configure/app/source/resolve-extension-prefix.md +2 -2
- package/zh/configure/app/source/resolve-main-fields.md +2 -2
- package/zh/configure/app/testing/transformer.md +2 -3
- package/zh/configure/app/tools/autoprefixer.md +2 -2
- package/zh/configure/app/tools/babel.md +2 -2
- package/zh/configure/app/tools/css-extract.md +2 -2
- package/zh/configure/app/tools/css-loader.md +2 -2
- package/zh/configure/app/tools/dev-server.md +2 -2
- package/zh/configure/app/tools/html-plugin.md +2 -2
- package/zh/configure/app/tools/inspector.md +2 -2
- package/zh/configure/app/tools/jest.md +9 -9
- package/zh/configure/app/tools/less.md +2 -2
- package/zh/configure/app/tools/minify-css.md +2 -2
- package/zh/configure/app/tools/postcss.md +2 -2
- package/zh/configure/app/tools/pug.md +2 -2
- package/zh/configure/app/tools/sass.md +2 -2
- package/zh/configure/app/tools/style-loader.md +2 -2
- package/zh/configure/app/tools/styled-components.md +2 -2
- package/zh/configure/app/tools/swc.md +12 -1
- package/zh/configure/app/tools/terser.md +2 -2
- package/zh/configure/app/tools/ts-checker.md +2 -2
- package/zh/configure/app/tools/ts-loader.md +2 -2
- package/zh/configure/app/tools/webpack-chain.md +2 -2
- package/zh/configure/app/tools/webpack.md +2 -2
- package/zh/guides/advanced-features/bff/frameworks.md +6 -6
- package/zh/guides/advanced-features/bff/function.md +49 -44
- package/zh/guides/advanced-features/bff/index.md +9 -9
- package/zh/guides/advanced-features/bff/type.md +0 -1
- package/zh/guides/advanced-features/code-split.md +3 -3
- package/zh/guides/advanced-features/compatibility.md +6 -7
- package/zh/guides/advanced-features/eslint.md +0 -1
- package/zh/guides/advanced-features/index.md +0 -5
- package/zh/guides/advanced-features/low-level.md +17 -19
- package/zh/guides/advanced-features/ssg.md +8 -9
- package/zh/guides/advanced-features/ssr.md +5 -11
- package/zh/guides/advanced-features/testing.md +3 -2
- package/zh/guides/advanced-features/web-server.md +3 -4
- package/zh/guides/basic-features/alias.md +7 -11
- package/zh/guides/basic-features/css/css-in-js.md +5 -5
- package/zh/guides/basic-features/css/css-modules.md +2 -2
- package/zh/guides/basic-features/css/postcss.md +42 -46
- package/zh/guides/basic-features/css/tailwindcss.md +5 -5
- package/zh/guides/basic-features/data-fetch.md +109 -192
- package/zh/guides/basic-features/env-vars.md +7 -6
- package/zh/guides/basic-features/html.md +54 -46
- package/zh/guides/basic-features/index.md +0 -5
- package/zh/guides/basic-features/mock.md +4 -4
- package/zh/guides/basic-features/proxy.md +4 -5
- package/zh/guides/basic-features/routes.md +105 -18
- package/zh/guides/concept/entries.md +5 -7
- package/zh/guides/get-started/quick-start.md +3 -4
- package/zh/guides/topic-detail/changesets/add.md +1 -3
- package/zh/guides/topic-detail/changesets/changelog.md +30 -31
- package/zh/guides/topic-detail/changesets/commit.md +44 -45
- package/zh/guides/topic-detail/changesets/config.md +2 -1
- package/zh/guides/topic-detail/changesets/github.md +6 -10
- package/zh/guides/topic-detail/changesets/introduce.md +0 -1
- package/zh/guides/topic-detail/changesets/release-note.md +9 -12
- package/zh/guides/topic-detail/changesets/release-pre.md +1 -1
- package/zh/guides/topic-detail/framework-plugin/extend.md +13 -13
- package/zh/guides/topic-detail/framework-plugin/hook-list.md +2 -2
- package/zh/guides/topic-detail/framework-plugin/hook.md +57 -54
- package/zh/guides/topic-detail/framework-plugin/implement.md +11 -11
- package/zh/guides/topic-detail/framework-plugin/plugin-api.md +4 -4
- package/zh/guides/topic-detail/generator/codesmith/api/app.md +36 -36
- package/zh/guides/topic-detail/generator/codesmith/api/ejs.md +2 -2
- package/zh/guides/topic-detail/generator/codesmith/api/fs.md +2 -2
- package/zh/guides/topic-detail/generator/codesmith/api/git.md +3 -2
- package/zh/guides/topic-detail/generator/codesmith/api/handlebars.md +2 -2
- package/zh/guides/topic-detail/generator/codesmith/api/json.md +9 -11
- package/zh/guides/topic-detail/generator/codesmith/api/npm.md +4 -2
- package/zh/guides/topic-detail/generator/codesmith/introduce.md +20 -7
- package/zh/guides/topic-detail/generator/codesmith/run-in-js.md +4 -5
- package/zh/guides/topic-detail/generator/codesmith/structure.md +13 -10
- package/zh/guides/topic-detail/generator/config/common.md +18 -27
- package/zh/guides/topic-detail/generator/plugin/abstract.md +1 -1
- package/zh/guides/topic-detail/generator/plugin/api/file/introduce.md +1 -0
- package/zh/guides/topic-detail/generator/plugin/api/file/updateJSONFile.md +4 -4
- package/zh/guides/topic-detail/generator/plugin/api/info/locale.md +1 -1
- package/zh/guides/topic-detail/generator/plugin/api/input/addInputAfter.md +2 -2
- package/zh/guides/topic-detail/generator/plugin/api/input/addInputBefore.md +3 -4
- package/zh/guides/topic-detail/generator/plugin/api/input/setInput.md +1 -1
- package/zh/guides/topic-detail/generator/plugin/api/input/type.md +1 -1
- package/zh/guides/topic-detail/generator/plugin/api/introduce.md +8 -9
- package/zh/guides/topic-detail/generator/plugin/develop.md +13 -13
- package/zh/guides/topic-detail/generator/plugin/use.md +8 -8
- package/zh/guides/topic-detail/generator/project.md +1 -1
- package/zh/guides/topic-detail/micro-frontend/c01-introduction.md +7 -8
- package/zh/guides/topic-detail/micro-frontend/c02-development.md +20 -23
- package/zh/guides/topic-detail/micro-frontend/c03-main-app.md +41 -44
- package/zh/guides/topic-detail/micro-frontend/c04-communicate.md +7 -5
- package/zh/guides/topic-detail/micro-frontend/c05-mixed-stack.md +1 -1
- package/zh/guides/topic-detail/model/auto-actions.md +0 -1
- package/zh/guides/topic-detail/model/computed-state.md +0 -2
- package/zh/guides/topic-detail/model/define-model.md +3 -6
- package/zh/guides/topic-detail/model/faq.md +2 -5
- package/zh/guides/topic-detail/model/manage-effects.md +2 -5
- package/zh/guides/topic-detail/model/model-communicate.md +1 -4
- package/zh/guides/topic-detail/model/performance.md +1 -5
- package/zh/guides/topic-detail/model/quick-start.md +0 -6
- package/zh/guides/topic-detail/model/redux-integration.md +3 -2
- package/zh/guides/topic-detail/model/test-model.md +1 -1
- package/zh/guides/topic-detail/model/typescript-best-practice.md +13 -14
- package/zh/guides/topic-detail/model/use-model.md +14 -12
- package/zh/guides/topic-detail/model/use-out-of-modernjs.md +4 -6
- package/zh/guides/topic-detail/monorepo/intro.md +0 -1
- package/zh/guides/topic-detail/monorepo/sub-project-interface.md +14 -7
- package/zh/tutorials/first-app/c01-start.md +2 -2
- package/zh/tutorials/first-app/c03-css.md +6 -9
- package/zh/tutorials/first-app/c04-routes.md +1 -1
- package/zh/tutorials/first-app/c05-loader.md +2 -1
- package/zh/tutorials/first-app/c07-container.md +6 -7
- package/zh/tutorials/first-app/c08-entries.md +5 -7
package/en/docusaurus-plugin-content-docs/current/components/micro-master-manifest-config.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
```ts
|
|
4
4
|
interface Manifest {
|
|
5
|
-
getAppList?: ()=> Array<AppInfo
|
|
5
|
+
getAppList?: () => Array<AppInfo>;
|
|
6
6
|
}
|
|
7
7
|
```
|
|
8
8
|
|
|
@@ -11,5 +11,5 @@ interface Manifest {
|
|
|
11
11
|
Through the `getAppList` configuration, you can customize how to get remote list data
|
|
12
12
|
|
|
13
13
|
```ts
|
|
14
|
-
type GetAppList = ()=> Promise<Array<AppInfo>>;
|
|
14
|
+
type GetAppList = () => Promise<Array<AppInfo>>;
|
|
15
15
|
```
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
### Node.js
|
|
2
|
+
|
|
3
|
+
Requires [Node.js LTS] (https://github.com/nodejs/Release) and makes sure the Node version is greater than or equal to v16.18.1.
|
|
4
|
+
|
|
5
|
+
Modern.js recommend installing [nvm](https://github.com/nvm-sh/nvm#install--update-script) in the development environment and integrating [script to automatically switch node versions](https://github.com/nvm-sh/nvm#deeper-shell-integration) in the shell.
|
|
6
|
+
|
|
7
|
+
Then whenever there is a `.nvmrc` file with `lts/gallium` in the root directory of the repository, entering the repository will automatically install or switch to the correct Node.js version.
|
|
8
|
+
|
|
9
|
+
### pnpm
|
|
10
|
+
|
|
11
|
+
It is recommended to use [pnpm](https://pnpm.io/installation) to manage dependencies:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install -g pnpm
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
:::note
|
|
18
|
+
Modern.js also supports dependency management with `yarn` and `npm`.
|
|
19
|
+
:::
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -13,13 +13,12 @@ Used to configure whether Modern.js enables auto-registration of plugins.
|
|
|
13
13
|
By default, installing the plugin requires you to register the plugin manually in the `modern.config.ts`.
|
|
14
14
|
|
|
15
15
|
```ts title="modern.config.ts"
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
|
|
19
|
-
default export defineConfig({
|
|
20
|
-
plugins: [AppToolsPlugin(), I18nPlugin()]
|
|
21
|
-
})
|
|
16
|
+
import appTools, { defineConfig } from '@modern-js/app-tools';
|
|
17
|
+
import i18nPlugin from '@modern-js/plugin-i18n';
|
|
22
18
|
|
|
19
|
+
export default defineConfig({
|
|
20
|
+
plugins: [appTools(), i18nPlugin()],
|
|
21
|
+
});
|
|
23
22
|
```
|
|
24
23
|
|
|
25
24
|
### Auto Registration plugin
|
|
@@ -29,9 +28,9 @@ In addition to means registration, Modern.js also provides a way to automaticall
|
|
|
29
28
|
```ts title="modern.config.ts"
|
|
30
29
|
import { defineConfig } from '@modern-js/app-tools';
|
|
31
30
|
|
|
32
|
-
default
|
|
33
|
-
autoLoadPlugins: true
|
|
34
|
-
})
|
|
31
|
+
export default defineConfig({
|
|
32
|
+
autoLoadPlugins: true,
|
|
33
|
+
});
|
|
35
34
|
```
|
|
36
35
|
|
|
37
36
|
Modern.js will help you automatically register the plugin by following these steps
|
|
@@ -4,8 +4,8 @@ sidebar_label: prefix
|
|
|
4
4
|
|
|
5
5
|
# bff.prefix
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
- Type: `string`
|
|
8
|
+
- Default: `/api`
|
|
9
9
|
|
|
10
10
|
:::caution Caution
|
|
11
11
|
First you need to enable the "BFF" function using [new](/docs/apis/app/commands/new) command.
|
|
@@ -22,12 +22,12 @@ The corresponding route for `api/hello.ts` access is `localhost:8080/api/hello`.
|
|
|
22
22
|
|
|
23
23
|
This configuration option can modify the default route prefix:
|
|
24
24
|
|
|
25
|
-
```
|
|
25
|
+
```ts title="modern.config.ts"
|
|
26
26
|
export default defineConfig({
|
|
27
27
|
bff: {
|
|
28
|
-
prefix: '/api-demo'
|
|
29
|
-
}
|
|
30
|
-
})
|
|
28
|
+
prefix: '/api-demo',
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
The corresponding `api/hello.ts` access route is `localhost:8080/api-demo/hello`.
|
|
@@ -4,8 +4,8 @@ sidebar_label: proxy
|
|
|
4
4
|
|
|
5
5
|
# bff.proxy
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
- Type: `Record<string, string>`
|
|
8
|
+
- Default: `{}`
|
|
9
9
|
|
|
10
10
|
:::caution Caution
|
|
11
11
|
First you need to enable the "BFF" function using [new](/docs/apis/app/commands/new) command.
|
|
@@ -17,15 +17,15 @@ BFF Proxy uses the powerful [http-proxy-middleware](https://github.com/chimurai/
|
|
|
17
17
|
|
|
18
18
|
Add the following configuration to `modern.server-runtime.config.ts`, you can turn on the proxy:
|
|
19
19
|
|
|
20
|
-
```
|
|
20
|
+
```ts title="modern.server-runtime.config.ts"
|
|
21
21
|
import { defineConfig } from '@modern-js/app-tools/server';
|
|
22
22
|
export default defineConfig({
|
|
23
23
|
bff: {
|
|
24
24
|
proxy: {
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
})
|
|
25
|
+
'/api': 'https://cnodejs.org',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
Assuming that the starting Modern.js BFF server's service address is `localhost:8080`, all requests whose path starts with `api` will be intercepted, such as requests sent to `localhost:8080/api/v1/topics` will be proxied to `https://cnodejs.org/api/v1/topics`.
|
|
@@ -57,14 +57,13 @@ In the process of project development, because web pages and interface services
|
|
|
57
57
|
|
|
58
58
|
There are many ways to solve cross-domain problems, and here we use `bff.proxy` to easily solve cross-domain problems.
|
|
59
59
|
|
|
60
|
-
|
|
61
60
|
:::info
|
|
62
61
|
In BFF proxy mode, if you do not need to write the BFF interface, the API directory can be deleted; at this time, BFF proxy will still be enabled.
|
|
63
62
|
:::
|
|
64
63
|
|
|
65
64
|
As shown below, in the `modern.server-runtime.config.js`, write the following configuration; we send all web pages to the same domain that request proxies starting with `/api` to another domain's service.
|
|
66
65
|
|
|
67
|
-
```
|
|
66
|
+
```ts title="modern.server-runtime.config.ts"
|
|
68
67
|
export default defineServerConfig({
|
|
69
68
|
bff: {
|
|
70
69
|
proxy: {
|
|
@@ -33,10 +33,10 @@ Below is an example of using the Builder plugin.
|
|
|
33
33
|
To use a plugin on npm, you need to install the plugin through the package manager and import it.
|
|
34
34
|
|
|
35
35
|
```ts title="modern.config.ts"
|
|
36
|
-
import
|
|
36
|
+
import myBuilderPlugin from 'my-builder-plugin';
|
|
37
37
|
|
|
38
38
|
export default defineConfig({
|
|
39
|
-
builderPlugins: [
|
|
39
|
+
builderPlugins: [myBuilderPlugin()],
|
|
40
40
|
});
|
|
41
41
|
```
|
|
42
42
|
|
|
@@ -45,10 +45,10 @@ export default defineConfig({
|
|
|
45
45
|
Use the plugin in the local code repository, you can import it directly through the relative path import.
|
|
46
46
|
|
|
47
47
|
```ts title="modern.config.ts"
|
|
48
|
-
import
|
|
48
|
+
import myBuilderPlugin from './plugin/myBuilderPlugin';
|
|
49
49
|
|
|
50
50
|
export default defineConfig({
|
|
51
|
-
builderPlugins: [
|
|
51
|
+
builderPlugins: [myBuilderPlugin()],
|
|
52
52
|
});
|
|
53
53
|
```
|
|
54
54
|
|
|
@@ -57,11 +57,11 @@ export default defineConfig({
|
|
|
57
57
|
If the plugin provides some custom configuration options, you can pass in the configuration through the parameters of the plugin function.
|
|
58
58
|
|
|
59
59
|
```ts title="modern.config.ts"
|
|
60
|
-
import
|
|
60
|
+
import myBuilderPlugin from 'my-builder-plugin';
|
|
61
61
|
|
|
62
62
|
export default defineConfig({
|
|
63
63
|
builderPlugins: [
|
|
64
|
-
|
|
64
|
+
myBuilderPlugin({
|
|
65
65
|
foo: 1,
|
|
66
66
|
bar: 2,
|
|
67
67
|
}),
|
|
@@ -4,8 +4,8 @@ sidebar_label: microFrontend
|
|
|
4
4
|
|
|
5
5
|
# deploy.microFrontend
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
- Type: `object`
|
|
8
|
+
- Default: `{ enableHtmlEntry: true, externalBasicLibrary: false }`
|
|
9
9
|
|
|
10
10
|
```ts
|
|
11
11
|
interface MicroFrontend {
|
|
@@ -27,9 +27,9 @@ Enable the "Micro Frontend" features through `pnpm run new` first.
|
|
|
27
27
|
export default defineConfig({
|
|
28
28
|
deploy: {
|
|
29
29
|
microFrontend: {
|
|
30
|
-
enableHtmlEntry: true
|
|
31
|
-
}
|
|
32
|
-
}
|
|
30
|
+
enableHtmlEntry: true,
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
33
|
});
|
|
34
34
|
```
|
|
35
35
|
|
|
@@ -37,18 +37,16 @@ export default defineConfig({
|
|
|
37
37
|
|
|
38
38
|
### enableHtmlEntry
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
- Type: `boolean`
|
|
41
|
+
- Default: `true`
|
|
41
42
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
* Whether to enable the html entry, the default is `true`, the sub-application is built into the `HTML` mode, Garfish supports the `html` entry, you can turn on the open option, experience the corresponding features, and directly point the sub-application entry to the HTML entry when it is the HTML entry. Just point to the html of the sub-application
|
|
45
|
-
* set it to `false` to indicate that the sub-application is built as `js`. After the sub-application is built as `js`, it cannot run independently. When it is a `JS` entry, point the entry file of the sub-application to the `JS` of the sub-application.
|
|
43
|
+
Whether to enable the html entry, the default is `true`, the sub-application is built into the `HTML` mode, Garfish supports the `html` entry, you can turn on the open option, experience the corresponding features, and directly point the sub-application entry to the HTML entry when it is the HTML entry. Just point to the html of the sub-application
|
|
46
44
|
|
|
45
|
+
Set it to `false` to indicate that the sub-application is built as `js`. After the sub-application is built as `js`, it cannot run independently. When it is a `JS` entry, point the entry file of the sub-application to the `JS` of the sub-application.
|
|
47
46
|
|
|
48
47
|
### externalBasicLibrary
|
|
49
48
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
* Default: `false`
|
|
49
|
+
- Type: `boolean`
|
|
50
|
+
- Default: `false`
|
|
53
51
|
|
|
54
52
|
Whether the `external` base library, when set to `true`, the current child application will be `external`: `react`, `react-dom`, Modern.js main application will automatically `setExternal` these two base libraries, if other types of frameworks Please add `react`, `react-dom` dependencies through `Garfish.setExternal`.
|
|
@@ -4,9 +4,9 @@ sidebar_label: assetPrefix
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
:::info BUILDER
|
|
7
|
-
This configuration is Modern.js Builder configuration, more detail can see [dev.assetPrefix](https://modernjs.dev/builder/
|
|
7
|
+
This configuration is Modern.js Builder configuration, more detail can see [dev.assetPrefix](https://modernjs.dev/builder/en/api/config-dev.html#dev-assetprefix)。
|
|
8
8
|
:::
|
|
9
9
|
|
|
10
|
-
import Main from '@modern-js/builder-doc/en/config/dev/assetPrefix.md'
|
|
10
|
+
import Main from '@modern-js/builder-doc/docs/en/config/dev/assetPrefix.md'
|
|
11
11
|
|
|
12
12
|
<Main />
|
|
@@ -4,9 +4,9 @@ sidebar_label: hmr
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
:::info BUILDER
|
|
7
|
-
This configuration is Modern.js Builder configuration, more detail can see [dev.hmr](https://modernjs.dev/builder/
|
|
7
|
+
This configuration is Modern.js Builder configuration, more detail can see [dev.hmr](https://modernjs.dev/builder/en/api/config-dev.html#dev-hmr)。
|
|
8
8
|
:::
|
|
9
9
|
|
|
10
|
-
import Main from '@modern-js/builder-doc/en/config/dev/hmr.md'
|
|
10
|
+
import Main from '@modern-js/builder-doc/docs/en/config/dev/hmr.md'
|
|
11
11
|
|
|
12
12
|
<Main />
|
|
@@ -4,9 +4,9 @@ sidebar_label: https
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
:::info BUILDER
|
|
7
|
-
This configuration is Modern.js Builder configuration, more detail can see [dev.https](https://modernjs.dev/builder/
|
|
7
|
+
This configuration is Modern.js Builder configuration, more detail can see [dev.https](https://modernjs.dev/builder/en/api/config-dev.html#dev-https)。
|
|
8
8
|
:::
|
|
9
9
|
|
|
10
|
-
import Main from '@modern-js/builder-doc/en/config/dev/https.md'
|
|
10
|
+
import Main from '@modern-js/builder-doc/docs/en/config/dev/https.md'
|
|
11
11
|
|
|
12
12
|
<Main />
|
|
@@ -4,9 +4,9 @@ sidebar_label: port
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
:::info BUILDER
|
|
7
|
-
This configuration is Modern.js Builder configuration, more detail can see [dev.port](https://modernjs.dev/builder/
|
|
7
|
+
This configuration is Modern.js Builder configuration, more detail can see [dev.port](https://modernjs.dev/builder/en/api/config-dev.html#dev-port)。
|
|
8
8
|
:::
|
|
9
9
|
|
|
10
|
-
import Main from '@modern-js/builder-doc/en/config/dev/port.md'
|
|
10
|
+
import Main from '@modern-js/builder-doc/docs/en/config/dev/port.md'
|
|
11
11
|
|
|
12
12
|
<Main />
|
|
@@ -4,9 +4,9 @@ sidebar_label: progressBar
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
:::info BUILDER
|
|
7
|
-
This configuration is Modern.js Builder configuration, more detail can see [dev.progressBar](https://modernjs.dev/builder/
|
|
7
|
+
This configuration is Modern.js Builder configuration, more detail can see [dev.progressBar](https://modernjs.dev/builder/en/api/config-dev.html#dev-progressbar)。
|
|
8
8
|
:::
|
|
9
9
|
|
|
10
|
-
import Main from '@modern-js/builder-doc/en/config/dev/progressBar.md'
|
|
10
|
+
import Main from '@modern-js/builder-doc/docs/en/config/dev/progressBar.md'
|
|
11
11
|
|
|
12
12
|
<Main />
|
|
@@ -4,9 +4,9 @@ sidebar_label: startUrl
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
:::info BUILDER
|
|
7
|
-
This configuration is Modern.js Builder configuration, more detail can see [dev.startUrl](https://modernjs.dev/builder/
|
|
7
|
+
This configuration is Modern.js Builder configuration, more detail can see [dev.startUrl](https://modernjs.dev/builder/en/api/config-dev.html#dev-starturl)。
|
|
8
8
|
:::
|
|
9
9
|
|
|
10
|
-
import Main from '@modern-js/builder-doc/en/config/dev/startUrl.md'
|
|
10
|
+
import Main from '@modern-js/builder-doc/docs/en/config/dev/startUrl.md'
|
|
11
11
|
|
|
12
12
|
<Main />
|
package/en/docusaurus-plugin-content-docs/current/configure/app/experiments/lazy-compilation.md
CHANGED
|
@@ -4,9 +4,9 @@ sidebar_label: lazyCompilation
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
:::info BUILDER
|
|
7
|
-
This configuration is Modern.js Builder configuration, more detail can see [experiments.lazyCompilation](https://modernjs.dev/builder/
|
|
7
|
+
This configuration is Modern.js Builder configuration, more detail can see [experiments.lazyCompilation](https://modernjs.dev/builder/en/api/config-experiments.html#experiments-lazycompilation)。
|
|
8
8
|
:::
|
|
9
9
|
|
|
10
|
-
import Main from '@modern-js/builder-doc/en/config/experiments/lazyCompilation.md'
|
|
10
|
+
import Main from '@modern-js/builder-doc/docs/en/config/experiments/lazyCompilation.md'
|
|
11
11
|
|
|
12
12
|
<Main />
|
|
@@ -4,9 +4,9 @@ sidebar_label: appIcon
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
:::info BUILDER
|
|
7
|
-
This configuration is Modern.js Builder configuration, more detail can see [html.appIcon](https://modernjs.dev/builder/
|
|
7
|
+
This configuration is Modern.js Builder configuration, more detail can see [html.appIcon](https://modernjs.dev/builder/en/api/config-html.html#html-appicon)。
|
|
8
8
|
:::
|
|
9
9
|
|
|
10
|
-
import Main from '@modern-js/builder-doc/en/config/html/appIcon.md'
|
|
10
|
+
import Main from '@modern-js/builder-doc/docs/en/config/html/appIcon.md'
|
|
11
11
|
|
|
12
12
|
<Main />
|
|
@@ -4,9 +4,9 @@ sidebar_label: crossorigin
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
:::info BUILDER
|
|
7
|
-
This configuration is Modern.js Builder configuration, more detail can see [html.crossorigin](https://modernjs.dev/builder/
|
|
7
|
+
This configuration is Modern.js Builder configuration, more detail can see [html.crossorigin](https://modernjs.dev/builder/en/api/config-html.html#html-crossorigin)。
|
|
8
8
|
:::
|
|
9
9
|
|
|
10
|
-
import Main from '@modern-js/builder-doc/en/config/html/crossorigin.md'
|
|
10
|
+
import Main from '@modern-js/builder-doc/docs/en/config/html/crossorigin.md'
|
|
11
11
|
|
|
12
12
|
<Main />
|
|
@@ -4,9 +4,9 @@ sidebar_label: disableHtmlFolder
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
:::info BUILDER
|
|
7
|
-
This configuration is Modern.js Builder configuration, more detail can see [html.disableHtmlFolder](https://modernjs.dev/builder/
|
|
7
|
+
This configuration is Modern.js Builder configuration, more detail can see [html.disableHtmlFolder](https://modernjs.dev/builder/en/api/config-html.html#html-disablehtmlfolder)。
|
|
8
8
|
:::
|
|
9
9
|
|
|
10
|
-
import Main from '@modern-js/builder-doc/en/config/html/disableHtmlFolder.md'
|
|
10
|
+
import Main from '@modern-js/builder-doc/docs/en/config/html/disableHtmlFolder.md'
|
|
11
11
|
|
|
12
12
|
<Main />
|
|
@@ -4,9 +4,9 @@ sidebar_label: faviconByEntries
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
:::info BUILDER
|
|
7
|
-
This configuration is Modern.js Builder configuration, more detail can see [html.faviconByEntries](https://modernjs.dev/builder/
|
|
7
|
+
This configuration is Modern.js Builder configuration, more detail can see [html.faviconByEntries](https://modernjs.dev/builder/en/api/config-html.html#html-faviconbyentries)。
|
|
8
8
|
:::
|
|
9
9
|
|
|
10
|
-
import Main from '@modern-js/builder-doc/en/config/html/faviconByEntries.md'
|
|
10
|
+
import Main from '@modern-js/builder-doc/docs/en/config/html/faviconByEntries.md'
|
|
11
11
|
|
|
12
12
|
<Main />
|
|
@@ -4,9 +4,9 @@ sidebar_label: favicon
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
:::info BUILDER
|
|
7
|
-
This configuration is Modern.js Builder configuration, more detail can see [html.favicon](https://modernjs.dev/builder/
|
|
7
|
+
This configuration is Modern.js Builder configuration, more detail can see [html.favicon](https://modernjs.dev/builder/en/api/config-html.html#html-favicon)。
|
|
8
8
|
:::
|
|
9
9
|
|
|
10
|
-
import Main from '@modern-js/builder-doc/en/config/html/favicon.md'
|
|
10
|
+
import Main from '@modern-js/builder-doc/docs/en/config/html/favicon.md'
|
|
11
11
|
|
|
12
12
|
<Main />
|
|
@@ -4,9 +4,9 @@ sidebar_label: injectByEntries
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
:::info BUILDER
|
|
7
|
-
This configuration is Modern.js Builder configuration, more detail can see [html.injectByEntries](https://modernjs.dev/builder/
|
|
7
|
+
This configuration is Modern.js Builder configuration, more detail can see [html.injectByEntries](https://modernjs.dev/builder/en/api/config-html.html#html-injectbyentries)。
|
|
8
8
|
:::
|
|
9
9
|
|
|
10
|
-
import Main from '@modern-js/builder-doc/en/config/html/injectByEntries.md'
|
|
10
|
+
import Main from '@modern-js/builder-doc/docs/en/config/html/injectByEntries.md'
|
|
11
11
|
|
|
12
12
|
<Main />
|
|
@@ -4,9 +4,9 @@ sidebar_label: inject
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
:::info BUILDER
|
|
7
|
-
This configuration is Modern.js Builder configuration, more detail can see [html.inject](https://modernjs.dev/builder/
|
|
7
|
+
This configuration is Modern.js Builder configuration, more detail can see [html.inject](https://modernjs.dev/builder/en/api/config-html.html#html-inject)。
|
|
8
8
|
:::
|
|
9
9
|
|
|
10
|
-
import Main from '@modern-js/builder-doc/en/config/html/inject.md'
|
|
10
|
+
import Main from '@modern-js/builder-doc/docs/en/config/html/inject.md'
|
|
11
11
|
|
|
12
12
|
<Main />
|
|
@@ -4,9 +4,9 @@ sidebar_label: metaByEntries
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
:::info BUILDER
|
|
7
|
-
This configuration is Modern.js Builder configuration, more detail can see [html.metaByEntries](https://modernjs.dev/builder/
|
|
7
|
+
This configuration is Modern.js Builder configuration, more detail can see [html.metaByEntries](https://modernjs.dev/builder/en/api/config-html.html#html-metabyentries)。
|
|
8
8
|
:::
|
|
9
9
|
|
|
10
|
-
import Main from '@modern-js/builder-doc/en/config/html/metaByEntries.md'
|
|
10
|
+
import Main from '@modern-js/builder-doc/docs/en/config/html/metaByEntries.md'
|
|
11
11
|
|
|
12
12
|
<Main />
|
|
@@ -4,9 +4,9 @@ sidebar_label: meta
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
:::info BUILDER
|
|
7
|
-
This configuration is Modern.js Builder configuration, more detail can see [html.meta](https://modernjs.dev/builder/
|
|
7
|
+
This configuration is Modern.js Builder configuration, more detail can see [html.meta](https://modernjs.dev/builder/en/api/config-html.html#html-meta)。
|
|
8
8
|
:::
|
|
9
9
|
|
|
10
|
-
import Main from '@modern-js/builder-doc/en/config/html/meta.md'
|
|
10
|
+
import Main from '@modern-js/builder-doc/docs/en/config/html/meta.md'
|
|
11
11
|
|
|
12
12
|
<Main />
|
|
@@ -4,9 +4,9 @@ sidebar_label: mountId
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
:::info BUILDER
|
|
7
|
-
This configuration is Modern.js Builder configuration, more detail can see [html.mountId](https://modernjs.dev/builder/
|
|
7
|
+
This configuration is Modern.js Builder configuration, more detail can see [html.mountId](https://modernjs.dev/builder/en/api/config-html.html#html-mountid)。
|
|
8
8
|
:::
|
|
9
9
|
|
|
10
|
-
import Main from '@modern-js/builder-doc/en/config/html/mountId.md'
|
|
10
|
+
import Main from '@modern-js/builder-doc/docs/en/config/html/mountId.md'
|
|
11
11
|
|
|
12
12
|
<Main />
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: html.tagsByEntries
|
|
3
|
+
sidebar_label: tagsByEntries
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
:::info BUILDER
|
|
7
|
+
This configuration is Modern.js Builder configuration, more detail can see [html.tagsByEntries](https://modernjs.dev/builder/en/api/config-html.html#html-tagsbyentries)。
|
|
8
|
+
:::
|
|
9
|
+
|
|
10
|
+
import Main from '@modern-js/builder-doc/docs/en/config/html/tagsByEntries.md'
|
|
11
|
+
|
|
12
|
+
<Main />
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: html.tags
|
|
3
|
+
sidebar_label: tags
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
:::info BUILDER
|
|
7
|
+
This configuration is Modern.js Builder configuration, more detail can see [html.tags](https://modernjs.dev/builder/en/api/config-html.html#html-tags)。
|
|
8
|
+
:::
|
|
9
|
+
|
|
10
|
+
import Main from '@modern-js/builder-doc/docs/en/config/html/tags.md'
|
|
11
|
+
|
|
12
|
+
<Main />
|
|
@@ -4,9 +4,9 @@ sidebar_label: templateByEntries
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
:::info BUILDER
|
|
7
|
-
This configuration is Modern.js Builder configuration, more detail can see [html.templateByEntries](https://modernjs.dev/builder/
|
|
7
|
+
This configuration is Modern.js Builder configuration, more detail can see [html.templateByEntries](https://modernjs.dev/builder/en/api/config-html.html#html-templatebyentries)。
|
|
8
8
|
:::
|
|
9
9
|
|
|
10
|
-
import Main from '@modern-js/builder-doc/en/config/html/templateByEntries.md'
|
|
10
|
+
import Main from '@modern-js/builder-doc/docs/en/config/html/templateByEntries.md'
|
|
11
11
|
|
|
12
12
|
<Main />
|
|
@@ -4,9 +4,9 @@ sidebar_label: templateParametersByEntries
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
:::info BUILDER
|
|
7
|
-
This configuration is Modern.js Builder configuration, more detail can see [html.templateParametersByEntries](https://modernjs.dev/builder/
|
|
7
|
+
This configuration is Modern.js Builder configuration, more detail can see [html.templateParametersByEntries](https://modernjs.dev/builder/en/api/config-html.html#html-templateparametersbyentries)。
|
|
8
8
|
:::
|
|
9
9
|
|
|
10
|
-
import Main from '@modern-js/builder-doc/en/config/html/templateParametersByEntries.md'
|
|
10
|
+
import Main from '@modern-js/builder-doc/docs/en/config/html/templateParametersByEntries.md'
|
|
11
11
|
|
|
12
12
|
<Main />
|
|
@@ -4,9 +4,9 @@ sidebar_label: templateParameters
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
:::info BUILDER
|
|
7
|
-
This configuration is Modern.js Builder configuration, more detail can see [html.templateParameters](https://modernjs.dev/builder/
|
|
7
|
+
This configuration is Modern.js Builder configuration, more detail can see [html.templateParameters](https://modernjs.dev/builder/en/api/config-html.html#html-templateparameters)。
|
|
8
8
|
:::
|
|
9
9
|
|
|
10
|
-
import Main from '@modern-js/builder-doc/en/config/html/templateParameters.md'
|
|
10
|
+
import Main from '@modern-js/builder-doc/docs/en/config/html/templateParameters.md'
|
|
11
11
|
|
|
12
12
|
<Main />
|
|
@@ -4,9 +4,9 @@ sidebar_label: template
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
:::info BUILDER
|
|
7
|
-
This configuration is Modern.js Builder configuration, more detail can see [html.template](https://modernjs.dev/builder/
|
|
7
|
+
This configuration is Modern.js Builder configuration, more detail can see [html.template](https://modernjs.dev/builder/en/api/config-html.html#html-template)。
|
|
8
8
|
:::
|
|
9
9
|
|
|
10
|
-
import Main from '@modern-js/builder-doc/en/config/html/template.md'
|
|
10
|
+
import Main from '@modern-js/builder-doc/docs/en/config/html/template.md'
|
|
11
11
|
|
|
12
12
|
<Main />
|
|
@@ -4,9 +4,9 @@ sidebar_label: titleByEntries
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
:::info BUILDER
|
|
7
|
-
This configuration is Modern.js Builder configuration, more detail can see [html.titleByEntries](https://modernjs.dev/builder/
|
|
7
|
+
This configuration is Modern.js Builder configuration, more detail can see [html.titleByEntries](https://modernjs.dev/builder/en/api/config-html.html#html-titlebyentries)。
|
|
8
8
|
:::
|
|
9
9
|
|
|
10
|
-
import Main from '@modern-js/builder-doc/en/config/html/titleByEntries.md'
|
|
10
|
+
import Main from '@modern-js/builder-doc/docs/en/config/html/titleByEntries.md'
|
|
11
11
|
|
|
12
12
|
<Main />
|
|
@@ -4,9 +4,9 @@ sidebar_label: title
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
:::info BUILDER
|
|
7
|
-
This configuration is Modern.js Builder configuration, more detail can see [html.title](https://modernjs.dev/builder/
|
|
7
|
+
This configuration is Modern.js Builder configuration, more detail can see [html.title](https://modernjs.dev/builder/en/api/config-html.html#html-title)。
|
|
8
8
|
:::
|
|
9
9
|
|
|
10
|
-
import Main from '@modern-js/builder-doc/en/config/html/title.md'
|
|
10
|
+
import Main from '@modern-js/builder-doc/docs/en/config/html/title.md'
|
|
11
11
|
|
|
12
12
|
<Main />
|
|
@@ -4,9 +4,9 @@ sidebar_label: assetPrefix
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
:::info BUILDER
|
|
7
|
-
This configuration is Modern.js Builder configuration, more detail can see [output.assetPrefix](https://modernjs.dev/builder/
|
|
7
|
+
This configuration is Modern.js Builder configuration, more detail can see [output.assetPrefix](https://modernjs.dev/builder/en/api/config-output.html#output-assetprefix)。
|
|
8
8
|
:::
|
|
9
9
|
|
|
10
|
-
import Main from '@modern-js/builder-doc/en/config/output/assetPrefix.md'
|
|
10
|
+
import Main from '@modern-js/builder-doc/docs/en/config/output/assetPrefix.md'
|
|
11
11
|
|
|
12
12
|
<Main />
|
|
@@ -4,9 +4,9 @@ sidebar_label: assetsRetry
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
:::info BUILDER
|
|
7
|
-
This configuration is Modern.js Builder configuration, more detail can see [output.assetsRetry](https://modernjs.dev/builder/
|
|
7
|
+
This configuration is Modern.js Builder configuration, more detail can see [output.assetsRetry](https://modernjs.dev/builder/en/api/config-output.html#output-assetsretry)。
|
|
8
8
|
:::
|
|
9
9
|
|
|
10
|
-
import Main from '@modern-js/builder-doc/en/config/output/assetsRetry.md'
|
|
10
|
+
import Main from '@modern-js/builder-doc/docs/en/config/output/assetsRetry.md'
|
|
11
11
|
|
|
12
12
|
<Main />
|