@modern-js/main-doc 2.3.0 → 2.5.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/LICENSE +0 -123
- package/README.md +26 -0
- package/en/apis/app/commands/_category_.json +1 -4
- package/en/apis/app/commands/new.mdx +11 -10
- package/en/apis/app/commands/test.mdx +1 -1
- package/en/apis/app/hooks/_category_.json +1 -4
- package/en/apis/app/hooks/api/framework/lambda.mdx +1 -1
- package/en/apis/app/hooks/api/functions/api.mdx +1 -1
- package/en/apis/app/hooks/server/index_.mdx +2 -1
- package/en/apis/app/hooks/src/pages.mdx +7 -7
- package/en/apis/app/hooks/src/routes.mdx +1 -1
- package/en/apis/app/runtime/_category_.json +1 -5
- package/en/apis/app/runtime/app/define-config.mdx +2 -2
- package/en/apis/app/runtime/core/bootstrap.mdx +1 -1
- package/en/apis/app/runtime/core/create-app.mdx +2 -2
- package/en/apis/app/runtime/core/use-loader.mdx +4 -4
- package/en/apis/app/runtime/core/use-module-apps.mdx +2 -2
- package/en/apis/app/runtime/model/Provider.mdx +2 -2
- package/en/apis/app/runtime/model/auto-actions.mdx +2 -2
- package/en/apis/app/runtime/model/connect.mdx +5 -5
- package/en/apis/app/runtime/model/create-app.mdx +9 -9
- package/en/apis/app/runtime/model/create-store.mdx +3 -3
- package/en/apis/app/runtime/model/handle-effect.mdx +2 -2
- package/en/apis/app/runtime/model/model_.mdx +1 -1
- package/en/apis/app/runtime/model/use-local-model.mdx +1 -1
- package/en/apis/app/runtime/model/use-model.mdx +1 -1
- package/en/apis/app/runtime/model/use-static-model.mdx +4 -4
- package/en/apis/app/runtime/model/use-store.mdx +1 -1
- package/en/apis/app/runtime/router/router.mdx +1 -1
- package/en/apis/app/runtime/ssr/pre-render.mdx +1 -1
- package/en/apis/app/runtime/testing/render.mdx +1 -1
- package/en/apis/app/runtime/testing/renderApp.mdx +1 -1
- package/en/apis/app/runtime/utility/css-in-js.mdx +1 -1
- package/en/apis/app/runtime/utility/loadable.mdx +1 -1
- package/en/apis/app/runtime/web-server/hook.mdx +5 -5
- package/en/apis/app/runtime/web-server/middleware.mdx +6 -6
- package/en/components/global-proxy-config.mdx +3 -3
- package/en/components/init-app.mdx +1 -1
- package/en/configure/app/bff/_category_.json +4 -0
- package/en/configure/app/builder-plugins.mdx +3 -3
- package/en/configure/app/deploy/_category_.json +4 -0
- package/en/configure/app/dev/_category_.json +4 -0
- package/en/configure/app/dev/asset-prefix.mdx +1 -1
- package/en/configure/app/dev/hmr.mdx +1 -1
- package/en/configure/app/dev/https.mdx +1 -1
- package/en/configure/app/dev/port.mdx +1 -1
- package/en/configure/app/dev/progress-bar.mdx +1 -1
- package/en/configure/app/dev/start-url.mdx +1 -1
- package/en/configure/app/experiments/_category_.json +4 -0
- package/en/configure/app/experiments/lazy-compilation.mdx +1 -1
- package/en/configure/app/html/_category_.json +4 -0
- package/en/configure/app/html/app-icon.mdx +1 -1
- package/en/configure/app/html/crossorigin.mdx +1 -1
- package/en/configure/app/html/disable-html-folder.mdx +1 -1
- package/en/configure/app/html/favicon-by-entries.mdx +1 -1
- package/en/configure/app/html/favicon.mdx +1 -1
- package/en/configure/app/html/inject-by-entries.mdx +1 -1
- package/en/configure/app/html/inject.mdx +1 -1
- package/en/configure/app/html/meta-by-entries.mdx +1 -1
- package/en/configure/app/html/meta.mdx +1 -1
- package/en/configure/app/html/mount-id.mdx +1 -1
- package/en/configure/app/html/tags-by-entries.mdx +1 -1
- package/en/configure/app/html/tags.mdx +1 -1
- package/en/configure/app/html/template-by-entries.mdx +1 -1
- package/en/configure/app/html/template-parameters-by-entries.mdx +1 -1
- package/en/configure/app/html/template-parameters.mdx +1 -1
- package/en/configure/app/html/template.mdx +1 -1
- package/en/configure/app/html/title-by-entries.mdx +1 -1
- package/en/configure/app/html/title.mdx +1 -1
- package/en/configure/app/output/_category_.json +4 -0
- package/en/configure/app/output/asset-prefix.mdx +1 -1
- package/en/configure/app/output/assets-retry.mdx +1 -1
- package/en/configure/app/output/charset.mdx +1 -1
- package/en/configure/app/output/clean-dist-path.mdx +1 -1
- package/en/configure/app/output/convert-to-rem.mdx +1 -1
- package/en/configure/app/output/copy.mdx +1 -1
- package/en/configure/app/output/css-module-local-ident-name.mdx +1 -1
- package/en/configure/app/output/data-uri-limit.mdx +1 -1
- package/en/configure/app/output/disable-css-extract.mdx +1 -1
- package/en/configure/app/output/disable-css-module-extension.mdx +1 -1
- package/en/configure/app/output/disable-filename-hash.mdx +1 -1
- package/en/configure/app/output/disable-inline-runtime-chunk.mdx +1 -1
- package/en/configure/app/output/disable-minimize.mdx +1 -1
- package/en/configure/app/output/disable-source-map.mdx +1 -1
- package/en/configure/app/output/disable-ts-checker.mdx +1 -1
- package/en/configure/app/output/dist-path.mdx +1 -1
- package/en/configure/app/output/enable-asset-fallback.mdx +1 -1
- package/en/configure/app/output/enable-asset-manifest.mdx +1 -1
- package/en/configure/app/output/enable-css-module-tsdeclaration.mdx +1 -1
- package/en/configure/app/output/enable-inline-scripts.mdx +1 -1
- package/en/configure/app/output/enable-inline-styles.mdx +1 -1
- package/en/configure/app/output/enable-latest-decorators.mdx +1 -1
- package/en/configure/app/output/externals.mdx +1 -1
- package/en/configure/app/output/filename.mdx +1 -1
- package/en/configure/app/output/legal-comments.mdx +1 -1
- package/en/configure/app/output/override-browserslist.mdx +1 -1
- package/en/configure/app/output/polyfill.mdx +1 -1
- package/en/configure/app/output/ssg.mdx +2 -2
- package/en/configure/app/output/svg-default-export.mdx +1 -1
- package/en/configure/app/performance/_category_.json +4 -0
- package/en/configure/app/performance/build-cache.mdx +1 -1
- package/en/configure/app/performance/bundle-analyze.mdx +1 -1
- package/en/configure/app/performance/chunk-split.mdx +1 -1
- package/en/configure/app/performance/print-file-size.mdx +1 -1
- package/en/configure/app/performance/profile.mdx +1 -1
- package/en/configure/app/performance/remove-console.mdx +1 -1
- package/en/configure/app/performance/remove-moment-locale.mdx +1 -1
- package/en/configure/app/plugins.mdx +1 -1
- package/en/configure/app/runtime/_category_.json +4 -0
- package/en/configure/app/runtime/intro.mdx +2 -2
- package/en/configure/app/security/_category_.json +4 -0
- package/en/configure/app/security/check-syntax.mdx +1 -1
- package/en/configure/app/security/sri.mdx +1 -1
- package/en/configure/app/server/_category_.json +4 -0
- package/en/configure/app/server/base-url.mdx +3 -3
- package/en/configure/app/server/enable-framework-ext.mdx +1 -1
- package/en/configure/app/server/ssr-by-entries.mdx +1 -1
- package/en/configure/app/source/_category_.json +4 -0
- package/en/configure/app/source/alias.mdx +1 -1
- package/en/configure/app/source/compile-js-data-uri.mdx +1 -1
- package/en/configure/app/source/define.mdx +1 -1
- package/en/configure/app/source/design-system.mdx +5 -5
- package/en/configure/app/source/entries.mdx +3 -3
- package/en/configure/app/source/exclude.mdx +1 -1
- package/en/configure/app/source/global-vars.mdx +1 -1
- package/en/configure/app/source/include.mdx +1 -1
- package/en/configure/app/source/module-scopes.mdx +1 -1
- package/en/configure/app/source/pre-entry.mdx +1 -1
- package/en/configure/app/source/resolve-extension-prefix.mdx +1 -1
- package/en/configure/app/source/resolve-main-fields.mdx +1 -1
- package/en/configure/app/testing/_category_.json +4 -0
- package/en/configure/app/tools/_category_.json +4 -0
- package/en/configure/app/tools/autoprefixer.mdx +1 -1
- package/en/configure/app/tools/babel.mdx +1 -1
- package/en/configure/app/tools/css-extract.mdx +1 -1
- package/en/configure/app/tools/css-loader.mdx +1 -1
- package/en/configure/app/tools/dev-server.mdx +1 -1
- package/en/configure/app/tools/html-plugin.mdx +1 -1
- package/en/configure/app/tools/inspector.mdx +1 -1
- package/en/configure/app/tools/less.mdx +1 -1
- package/en/configure/app/tools/minify-css.mdx +1 -1
- package/en/configure/app/tools/postcss.mdx +1 -1
- package/en/configure/app/tools/pug.mdx +1 -1
- package/en/configure/app/tools/rspack.mdx +13 -0
- package/en/configure/app/tools/sass.mdx +1 -1
- package/en/configure/app/tools/style-loader.mdx +1 -1
- package/en/configure/app/tools/styled-components.mdx +1 -1
- package/en/configure/app/tools/tailwindcss.mdx +1 -1
- package/en/configure/app/tools/terser.mdx +1 -1
- package/en/configure/app/tools/ts-checker.mdx +1 -1
- package/en/configure/app/tools/ts-loader.mdx +1 -1
- package/en/configure/app/tools/webpack-chain.mdx +1 -1
- package/en/configure/app/tools/webpack.mdx +1 -1
- package/en/configure/app/usage.mdx +64 -1
- package/en/guides/advanced-features/_category_.json +5 -0
- package/en/guides/advanced-features/bff/bff-proxy.mdx +1 -1
- package/en/guides/advanced-features/bff/frameworks.mdx +1 -1
- package/en/guides/advanced-features/bff/function.mdx +3 -3
- package/en/guides/advanced-features/code-split.mdx +2 -2
- package/en/guides/advanced-features/compatibility.mdx +2 -3
- package/en/guides/advanced-features/eslint.mdx +4 -4
- package/en/guides/advanced-features/low-level.mdx +1 -1
- package/en/guides/advanced-features/ssg.mdx +4 -5
- package/en/guides/advanced-features/ssr.mdx +5 -5
- package/en/guides/advanced-features/testing.mdx +4 -5
- package/en/guides/advanced-features/web-server.mdx +0 -1
- package/en/guides/basic-features/_category_.json +5 -0
- package/en/guides/basic-features/alias.mdx +1 -1
- package/en/guides/basic-features/data-fetch.mdx +21 -8
- package/en/guides/basic-features/env-vars.mdx +1 -1
- package/en/guides/basic-features/html.mdx +11 -11
- package/en/guides/basic-features/mock.mdx +21 -1
- package/en/guides/basic-features/proxy.mdx +2 -2
- package/en/guides/basic-features/routes.mdx +33 -7
- package/en/guides/concept/_category_.json +5 -0
- package/en/guides/{basic-features → concept}/builder.mdx +2 -2
- package/en/guides/concept/entries.mdx +11 -11
- package/en/guides/css/_category_.json +5 -0
- package/en/guides/{basic-features/css → css}/css-in-js.mdx +0 -0
- package/en/guides/{basic-features/css → css}/css-modules.mdx +0 -0
- package/en/guides/{basic-features/css → css}/less-sass.mdx +1 -1
- package/en/guides/{basic-features/css → css}/postcss.mdx +0 -0
- package/en/guides/{basic-features/css → css}/tailwindcss.mdx +0 -0
- package/en/guides/get-started/_category_.json +5 -0
- package/en/guides/get-started/introduction.mdx +34 -0
- package/en/guides/get-started/quick-start.mdx +2 -2
- package/en/guides/get-started/upgrade.mdx +2 -1
- package/en/guides/topic-detail/_category_.json +2 -2
- package/en/guides/topic-detail/framework-plugin/hook.mdx +1 -1
- package/en/guides/topic-detail/generator/config/{mwa.mdx → app.mdx} +1 -1
- package/en/guides/topic-detail/generator/plugin/api/hook/onForged.mdx +1 -1
- package/en/guides/topic-detail/generator/plugin/api/new/createElement.mdx +1 -1
- package/en/guides/topic-detail/generator/plugin/api/new/enableFunc.mdx +1 -1
- package/en/guides/topic-detail/generator/plugin/api/new/introduce.mdx +1 -1
- package/en/guides/topic-detail/generator/plugin/develop.mdx +3 -3
- package/en/guides/topic-detail/micro-frontend/c02-development.mdx +128 -61
- package/en/guides/topic-detail/micro-frontend/c03-main-app.mdx +72 -41
- package/en/guides/topic-detail/micro-frontend/c05-mixed-stack.mdx +1 -1
- package/en/guides/topic-detail/model/auto-actions.mdx +1 -1
- package/en/guides/topic-detail/model/define-model.mdx +1 -1
- package/en/guides/topic-detail/model/manage-effects.mdx +1 -1
- package/en/guides/topic-detail/model/model-communicate.mdx +1 -1
- package/en/guides/topic-detail/model/quick-start.mdx +2 -2
- package/en/guides/topic-detail/model/test-model.mdx +1 -1
- package/en/guides/topic-detail/model/use-model.mdx +3 -3
- package/en/guides/troubleshooting/_category_.json +2 -2
- package/en/guides/troubleshooting/cli.mdx +1 -1
- package/en/index.md +1 -1
- package/en/tutorials/first-app/_category_.json +1 -1
- package/en/tutorials/first-app/c01-start.mdx +0 -1
- package/en/tutorials/first-app/c03-css.mdx +1 -2
- package/en/tutorials/first-app/c06-model.mdx +1 -1
- package/en/tutorials/first-app/c07-container.mdx +1 -1
- package/en/tutorials/first-app/c08-entries.mdx +1 -2
- package/en/tutorials/foundations/introduction.mdx +17 -34
- package/package.json +3 -3
- package/scripts/config.ts +3 -1
- package/scripts/summary.en.json +1 -1
- package/scripts/summary.zh.json +1 -1
- package/zh/apis/app/commands/_category_.json +1 -4
- package/zh/apis/app/hooks/_category_.json +1 -4
- package/zh/apis/app/hooks/src/pages.mdx +1 -1
- package/zh/apis/app/hooks/src/routes.mdx +1 -1
- package/zh/apis/app/runtime/_category_.json +1 -5
- package/zh/apis/app/runtime/core/create-app.mdx +1 -1
- package/zh/apis/app/runtime/core/use-module-apps.mdx +81 -40
- package/zh/apis/app/runtime/model/Provider.mdx +2 -2
- package/zh/apis/app/runtime/model/create-app.mdx +7 -7
- package/zh/apis/app/runtime/model/create-store.mdx +2 -2
- package/zh/apis/app/runtime/model/use-local-model.mdx +1 -1
- package/zh/apis/app/runtime/model/use-static-model.mdx +1 -1
- package/zh/apis/app/runtime/model/use-store.mdx +1 -1
- package/zh/apis/app/runtime/testing/renderApp.mdx +1 -1
- package/zh/components/custom-router-micro-frontend.mdx +40 -0
- package/zh/components/enable-micro-frontend.mdx +12 -2
- package/zh/components/micro-runtime-config.mdx +9 -10
- package/zh/components/release-note.mdx +1 -1
- package/zh/configure/app/builder-plugins.mdx +3 -3
- package/zh/configure/app/dev/asset-prefix.mdx +1 -1
- package/zh/configure/app/dev/hmr.mdx +1 -1
- package/zh/configure/app/dev/https.mdx +1 -1
- package/zh/configure/app/dev/port.mdx +1 -1
- package/zh/configure/app/dev/progress-bar.mdx +1 -1
- package/zh/configure/app/dev/start-url.mdx +1 -1
- package/zh/configure/app/experiments/lazy-compilation.mdx +1 -1
- package/zh/configure/app/html/app-icon.mdx +1 -1
- package/zh/configure/app/html/crossorigin.mdx +1 -1
- package/zh/configure/app/html/disable-html-folder.mdx +1 -1
- package/zh/configure/app/html/favicon-by-entries.mdx +1 -1
- package/zh/configure/app/html/favicon.mdx +1 -1
- package/zh/configure/app/html/inject-by-entries.mdx +1 -1
- package/zh/configure/app/html/inject.mdx +1 -1
- package/zh/configure/app/html/meta-by-entries.mdx +1 -1
- package/zh/configure/app/html/meta.mdx +1 -1
- package/zh/configure/app/html/mount-id.mdx +1 -1
- package/zh/configure/app/html/tags-by-entries.mdx +1 -1
- package/zh/configure/app/html/tags.mdx +1 -1
- package/zh/configure/app/html/template-by-entries.mdx +1 -1
- package/zh/configure/app/html/template-parameters-by-entries.mdx +1 -1
- package/zh/configure/app/html/template-parameters.mdx +1 -1
- package/zh/configure/app/html/template.mdx +1 -1
- package/zh/configure/app/html/title-by-entries.mdx +1 -1
- package/zh/configure/app/html/title.mdx +1 -1
- package/zh/configure/app/output/asset-prefix.mdx +1 -1
- package/zh/configure/app/output/assets-retry.mdx +1 -1
- package/zh/configure/app/output/charset.mdx +1 -1
- package/zh/configure/app/output/clean-dist-path.mdx +1 -1
- package/zh/configure/app/output/convert-to-rem.mdx +1 -1
- package/zh/configure/app/output/copy.mdx +1 -1
- package/zh/configure/app/output/css-module-local-ident-name.mdx +1 -1
- package/zh/configure/app/output/data-uri-limit.mdx +1 -1
- package/zh/configure/app/output/disable-css-extract.mdx +1 -1
- package/zh/configure/app/output/disable-css-module-extension.mdx +1 -1
- package/zh/configure/app/output/disable-filename-hash.mdx +1 -1
- package/zh/configure/app/output/disable-inline-runtime-chunk.mdx +1 -1
- package/zh/configure/app/output/disable-minimize.mdx +1 -1
- package/zh/configure/app/output/disable-source-map.mdx +1 -1
- package/zh/configure/app/output/disable-ts-checker.mdx +1 -1
- package/zh/configure/app/output/dist-path.mdx +1 -1
- package/zh/configure/app/output/enable-asset-fallback.mdx +1 -1
- package/zh/configure/app/output/enable-asset-manifest.mdx +1 -1
- package/zh/configure/app/output/enable-css-module-tsdeclaration.mdx +1 -1
- package/zh/configure/app/output/enable-inline-scripts.mdx +1 -1
- package/zh/configure/app/output/enable-inline-styles.mdx +1 -1
- package/zh/configure/app/output/enable-latest-decorators.mdx +1 -1
- package/zh/configure/app/output/externals.mdx +1 -1
- package/zh/configure/app/output/filename.mdx +1 -1
- package/zh/configure/app/output/legal-comments.mdx +1 -1
- package/zh/configure/app/output/override-browserslist.mdx +1 -1
- package/zh/configure/app/output/polyfill.mdx +1 -1
- package/zh/configure/app/output/svg-default-export.mdx +1 -1
- package/zh/configure/app/performance/build-cache.mdx +1 -1
- package/zh/configure/app/performance/bundle-analyze.mdx +1 -1
- package/zh/configure/app/performance/chunk-split.mdx +1 -1
- package/zh/configure/app/performance/print-file-size.mdx +1 -1
- package/zh/configure/app/performance/profile.mdx +1 -1
- package/zh/configure/app/performance/remove-console.mdx +1 -1
- package/zh/configure/app/performance/remove-moment-locale.mdx +1 -1
- package/zh/configure/app/plugins.mdx +1 -1
- package/zh/configure/app/security/check-syntax.mdx +1 -1
- package/zh/configure/app/security/sri.mdx +1 -1
- package/zh/configure/app/server/ssr-by-entries.mdx +1 -1
- package/zh/configure/app/source/alias.mdx +1 -1
- package/zh/configure/app/source/compile-js-data-uri.mdx +1 -1
- package/zh/configure/app/source/define.mdx +1 -1
- package/zh/configure/app/source/exclude.mdx +1 -1
- package/zh/configure/app/source/global-vars.mdx +1 -1
- package/zh/configure/app/source/include.mdx +1 -1
- package/zh/configure/app/source/module-scopes.mdx +1 -1
- package/zh/configure/app/source/pre-entry.mdx +1 -1
- package/zh/configure/app/source/resolve-extension-prefix.mdx +1 -1
- package/zh/configure/app/source/resolve-main-fields.mdx +1 -1
- package/zh/configure/app/tools/autoprefixer.mdx +1 -1
- package/zh/configure/app/tools/babel.mdx +1 -1
- package/zh/configure/app/tools/css-extract.mdx +1 -1
- package/zh/configure/app/tools/css-loader.mdx +1 -1
- package/zh/configure/app/tools/dev-server.mdx +1 -1
- package/zh/configure/app/tools/html-plugin.mdx +1 -1
- package/zh/configure/app/tools/inspector.mdx +1 -1
- package/zh/configure/app/tools/less.mdx +1 -1
- package/zh/configure/app/tools/minify-css.mdx +1 -1
- package/zh/configure/app/tools/postcss.mdx +1 -1
- package/zh/configure/app/tools/pug.mdx +1 -1
- package/zh/configure/app/tools/rspack.mdx +13 -0
- package/zh/configure/app/tools/sass.mdx +1 -1
- package/zh/configure/app/tools/style-loader.mdx +1 -1
- package/zh/configure/app/tools/styled-components.mdx +1 -1
- package/zh/configure/app/tools/terser.mdx +1 -1
- package/zh/configure/app/tools/ts-checker.mdx +1 -1
- package/zh/configure/app/tools/ts-loader.mdx +1 -1
- package/zh/configure/app/tools/webpack-chain.mdx +1 -1
- package/zh/configure/app/tools/webpack.mdx +1 -1
- package/zh/configure/app/usage.mdx +64 -1
- package/zh/guides/advanced-features/_category_.json +2 -6
- package/zh/guides/advanced-features/compatibility.mdx +0 -1
- package/zh/guides/advanced-features/ssg.mdx +0 -1
- package/zh/guides/advanced-features/ssr.mdx +2 -2
- package/zh/guides/advanced-features/testing.mdx +0 -1
- package/zh/guides/advanced-features/web-server.mdx +0 -1
- package/zh/guides/basic-features/_category_.json +1 -5
- package/zh/guides/basic-features/alias.mdx +1 -1
- package/zh/guides/basic-features/data-fetch.mdx +35 -26
- package/zh/guides/basic-features/html.mdx +10 -9
- package/zh/guides/basic-features/mock.mdx +20 -0
- package/zh/guides/basic-features/routes.mdx +41 -9
- package/zh/guides/{basic-features → concept}/builder.mdx +2 -2
- package/zh/guides/concept/entries.mdx +11 -11
- package/zh/guides/css/_category_.json +5 -0
- package/zh/guides/{basic-features/css → css}/css-in-js.mdx +0 -0
- package/zh/guides/{basic-features/css → css}/css-modules.mdx +0 -0
- package/zh/guides/{basic-features/css → css}/less-sass.mdx +1 -1
- package/zh/guides/{basic-features/css → css}/postcss.mdx +5 -4
- package/zh/guides/{basic-features/css → css}/tailwindcss.mdx +0 -1
- package/zh/guides/get-started/introduction.mdx +31 -0
- package/zh/guides/get-started/quick-start.mdx +2 -3
- package/zh/guides/get-started/upgrade.mdx +2 -1
- package/zh/guides/topic-detail/_category_.json +2 -2
- package/zh/guides/topic-detail/generator/config/{mwa.mdx → app.mdx} +1 -1
- package/zh/guides/topic-detail/generator/plugin/api/input/addInputBefore.mdx +1 -1
- package/zh/guides/topic-detail/generator/plugin/api/new/createElement.mdx +1 -1
- package/zh/guides/topic-detail/generator/plugin/api/new/enableFunc.mdx +1 -1
- package/zh/guides/topic-detail/generator/plugin/api/new/introduce.mdx +2 -2
- package/zh/guides/topic-detail/generator/plugin/develop.mdx +3 -3
- package/zh/guides/topic-detail/micro-frontend/c02-development.mdx +155 -63
- package/zh/guides/topic-detail/micro-frontend/c03-main-app.mdx +71 -40
- package/zh/guides/topic-detail/model/model-communicate.mdx +1 -1
- package/zh/guides/troubleshooting/_category_.json +2 -2
- package/zh/index.md +1 -1
- package/zh/tutorials/first-app/_category_.json +1 -1
- package/zh/tutorials/first-app/c01-start.mdx +1 -2
- package/zh/tutorials/first-app/c03-css.mdx +1 -2
- package/zh/tutorials/first-app/c06-model.mdx +2 -2
- package/zh/tutorials/first-app/c07-container.mdx +1 -1
- package/zh/tutorials/first-app/c08-entries.mdx +2 -3
- package/zh/tutorials/foundations/introduction.mdx +14 -29
- package/en/apis/app/commands/index.mdx +0 -7
- package/en/apis/app/hooks/index.mdx +0 -7
- package/en/apis/app/runtime/index.mdx +0 -7
- package/en/guides/advanced-features/index.mdx +0 -7
- package/en/guides/basic-features/css/_category_.json +0 -4
- package/zh/apis/app/commands/index.mdx +0 -7
- package/zh/apis/app/hooks/index.mdx +0 -7
- package/zh/apis/app/runtime/index.mdx +0 -7
- package/zh/guides/advanced-features/index.mdx +0 -7
- package/zh/guides/basic-features/css/_category_.json +0 -4
- package/zh/guides/basic-features/index.mdx +0 -7
|
@@ -36,7 +36,7 @@ function PreRender(props: Props): React.Component
|
|
|
36
36
|
### Input
|
|
37
37
|
|
|
38
38
|
- `interval`: set the time the cache keep fresh,seconds. During this time, the cache will be used directly and not invoke asynchronous rendering.
|
|
39
|
-
- `staleLimit`: sets the time when the cache is completely expired,seconds
|
|
39
|
+
- `staleLimit`: sets the time when the cache is completely expired,seconds.During this time, The cache can be returned and asynchronous rendering will be invoke, otherwise must wait for the re-rendered result.
|
|
40
40
|
- `level`: sets the calculation rule level for the cache identity, usually used with `includes` and `matches`. The default value is `0`.
|
|
41
41
|
|
|
42
42
|
```bash
|
|
@@ -47,7 +47,7 @@ function render(ui: React.ReactElement<any>, options: Options): RenderResult;
|
|
|
47
47
|
|
|
48
48
|
### Return Value
|
|
49
49
|
|
|
50
|
-
- `{...queries}`: all available [queries](https://testing-library.com/docs/queries/about/)
|
|
50
|
+
- `{...queries}`: all available [queries](https://testing-library.com/docs/queries/about/).
|
|
51
51
|
- `container`: the DOM element that React component mounted.
|
|
52
52
|
- `baseElement`
|
|
53
53
|
- `debug`
|
|
@@ -6,7 +6,7 @@ title: Hook
|
|
|
6
6
|
Used to extend Modern.js built-in Web Server, requests except BFF are handled by these hooks.
|
|
7
7
|
|
|
8
8
|
:::note
|
|
9
|
-
For more detail, see [Extend Web Server](/guides/advanced-features/web-server)
|
|
9
|
+
For more detail, see [Extend Web Server](/guides/advanced-features/web-server).
|
|
10
10
|
|
|
11
11
|
:::
|
|
12
12
|
|
|
@@ -20,12 +20,12 @@ export const afterRender: AfterRenderHook = (context, next) => {};
|
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
:::info
|
|
23
|
-
|
|
23
|
+
Before using this API, please execute `pnpm run new` to create a new "Custom Web Server" source code directory.
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
26
|
pnpm run new
|
|
27
|
-
?
|
|
28
|
-
?
|
|
27
|
+
? Action Create project element
|
|
28
|
+
? New "Custom Web Server" source code directory
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
:::
|
|
@@ -92,7 +92,7 @@ type AfterRenderContext = {
|
|
|
92
92
|
- `request`: provides a series of methods to get request info.
|
|
93
93
|
- `router`: provides methods on routing.
|
|
94
94
|
- `template`: provides methods on content.
|
|
95
|
-
- `next`: call next listener(not affect the server process, only current hook
|
|
95
|
+
- `next`: call next listener(not affect the server process, only current hook).
|
|
96
96
|
|
|
97
97
|
## Example
|
|
98
98
|
|
|
@@ -8,7 +8,7 @@ Used to extend Modern.js built-in Web Server, only SSR requests are handled by t
|
|
|
8
8
|
Unlike [Hook](/apis/app/runtime/web-server/hook), middleware can be extended using the framework plugin.
|
|
9
9
|
|
|
10
10
|
:::note
|
|
11
|
-
For more detail, see [Extend Web Server](/guides/advanced-features/web-server)
|
|
11
|
+
For more detail, see [Extend Web Server](/guides/advanced-features/web-server).
|
|
12
12
|
|
|
13
13
|
:::
|
|
14
14
|
|
|
@@ -25,12 +25,12 @@ export const middleware: Middleware[] = [
|
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
:::info
|
|
28
|
-
|
|
28
|
+
Before using this API, please execute `pnpm run new` to create a new "Custom Web Server" source code directory.
|
|
29
29
|
|
|
30
30
|
```bash
|
|
31
31
|
pnpm run new
|
|
32
|
-
?
|
|
33
|
-
?
|
|
32
|
+
? Action Create project element
|
|
33
|
+
? New "Custom Web Server" source code directory
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
:::
|
|
@@ -82,8 +82,8 @@ type RequestHandler = (
|
|
|
82
82
|
- `context`: Middleware context.
|
|
83
83
|
- `response`: provides a series of methods to process the response.
|
|
84
84
|
- `request`: provides a series of methods to get request info.
|
|
85
|
-
- `source`: provides Node.js native `req` and `res` object
|
|
86
|
-
- `next`: call next listener(not affect the server process, only current hook
|
|
85
|
+
- `source`: provides Node.js native `req` and `res` object.
|
|
86
|
+
- `next`: call next listener(not affect the server process, only current hook).
|
|
87
87
|
|
|
88
88
|
## Example
|
|
89
89
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
When this option is configured, the development environment will start a global proxy, similar to [Fiddler](https://www.telerik.com/fiddler), [Charles](https://www.charlesproxy.com/) and other web proxy debugging tools, which can be used to view, modify HTTP/HTTPS requests, responses, and can also be used as a proxy server.
|
|
5
5
|
|
|
6
|
-
:::tip
|
|
7
|
-
Using this option requires advance installation `@modern-js/plugin-proxy
|
|
6
|
+
:::tip
|
|
7
|
+
Using this option requires advance installation `@modern-js/plugin-proxy`.
|
|
8
8
|
|
|
9
9
|
:::
|
|
10
10
|
|
|
@@ -19,7 +19,7 @@ export default defineConfig({
|
|
|
19
19
|
dev: {
|
|
20
20
|
proxy: {
|
|
21
21
|
'https://www.baidu.com': 'https://google.com.hk',
|
|
22
|
-
|
|
22
|
+
// Static files can be returned directly via the file protocol
|
|
23
23
|
'https://example.com/api': 'file://./data.json',
|
|
24
24
|
},
|
|
25
25
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Modern.js generator will provide an interactive Q & A interface, initialization items according to the result, according to the default selection:
|
|
2
2
|
|
|
3
3
|
```bash
|
|
4
|
-
? Please select the solution you want to create:
|
|
4
|
+
? Please select the solution you want to create: Web App Solution
|
|
5
5
|
? Development Language: TS
|
|
6
6
|
? Package Management Tool: pnpm
|
|
7
7
|
```
|
|
@@ -9,19 +9,19 @@ sidebar_position: 10
|
|
|
9
9
|
|
|
10
10
|
Used to configure the Modern.js Builder plugin.
|
|
11
11
|
|
|
12
|
-
Modern.js Builder is the build engine of Modern.js, please read [Builder](/guides/
|
|
12
|
+
Modern.js Builder is the build engine of Modern.js, please read [Builder](/guides/concept/builder) for background. If you want to know how to write Builder plugins, you can refer to [Modern.js Builder - Introduce to Plugin](https://modernjs.dev/builder/en/plugins/introduction.html).
|
|
13
13
|
|
|
14
14
|
## Precautions
|
|
15
15
|
|
|
16
16
|
This option **is used to configure the Modern.js Builder plugins**. If you need to configure other types of plugins, please select the corresponding configs:
|
|
17
17
|
|
|
18
|
-
- Use [plugins](
|
|
18
|
+
- Use [plugins](/configure/app/builder-plugins) to configure Modern.js framework plugins.
|
|
19
19
|
- Use [tools.webpack](/configure/app/tools/webpack) or [tools.webpackChain](/configure/app/tools/webpack-chain) to configure webpack plugins.
|
|
20
20
|
- Use [tools.babel](/configure/app/tools/babel) to configure babel plugins.
|
|
21
21
|
|
|
22
22
|
## When to use
|
|
23
23
|
|
|
24
|
-
In most scenarios, we recommend you to use the Modern.js framework plugin, which can be registered through the [plugins](
|
|
24
|
+
In most scenarios, we recommend you to use the Modern.js framework plugin, which can be registered through the [plugins](/configure/app/plugins) config. Because the API provided by the framework plugin is richer and more capable, while the API provided by the Builder plugin can only be used to build scenes.
|
|
25
25
|
|
|
26
26
|
When you need to reference some existing Builder plugins (and there is no related capability in Modern.js), or reuse Builder plugins between different frameworks, you can use the `builderPlugins` field to register them.
|
|
27
27
|
|
|
@@ -5,7 +5,7 @@ sidebar_label: assetPrefix
|
|
|
5
5
|
# dev.assetPrefix
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [dev.assetPrefix](https://modernjs.dev/builder/en/api/config-dev.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [dev.assetPrefix](https://modernjs.dev/builder/en/api/config-dev.html#devassetprefix).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/dev/assetPrefix.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: hmr
|
|
|
5
5
|
# dev.hmr
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [dev.hmr](https://modernjs.dev/builder/en/api/config-dev.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [dev.hmr](https://modernjs.dev/builder/en/api/config-dev.html#devhmr).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/dev/hmr.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: https
|
|
|
5
5
|
# dev.https
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [dev.https](https://modernjs.dev/builder/en/api/config-dev.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [dev.https](https://modernjs.dev/builder/en/api/config-dev.html#devhttps).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/dev/https.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: port
|
|
|
5
5
|
# dev.port
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [dev.port](https://modernjs.dev/builder/en/api/config-dev.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [dev.port](https://modernjs.dev/builder/en/api/config-dev.html#devport).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/dev/port.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: progressBar
|
|
|
5
5
|
# dev.progressBar
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [dev.progressBar](https://modernjs.dev/builder/en/api/config-dev.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [dev.progressBar](https://modernjs.dev/builder/en/api/config-dev.html#devprogressbar).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/dev/progressBar.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: startUrl
|
|
|
5
5
|
# dev.startUrl
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [dev.startUrl](https://modernjs.dev/builder/en/api/config-dev.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [dev.startUrl](https://modernjs.dev/builder/en/api/config-dev.html#devstarturl).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/dev/startUrl.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: lazyCompilation
|
|
|
5
5
|
# experiments.lazyCompilation
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [experiments.lazyCompilation](https://modernjs.dev/builder/en/api/config-experiments.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [experiments.lazyCompilation](https://modernjs.dev/builder/en/api/config-experiments.html#experimentslazycompilation).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/experiments/lazyCompilation.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: appIcon
|
|
|
5
5
|
# html.appIcon
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.appIcon](https://modernjs.dev/builder/en/api/config-html.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [html.appIcon](https://modernjs.dev/builder/en/api/config-html.html#htmlappicon).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/html/appIcon.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: crossorigin
|
|
|
5
5
|
# html.crossorigin
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.crossorigin](https://modernjs.dev/builder/en/api/config-html.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [html.crossorigin](https://modernjs.dev/builder/en/api/config-html.html#htmlcrossorigin).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/html/crossorigin.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: disableHtmlFolder
|
|
|
5
5
|
# html.disableHtmlFolder
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.disableHtmlFolder](https://modernjs.dev/builder/en/api/config-html.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [html.disableHtmlFolder](https://modernjs.dev/builder/en/api/config-html.html#htmldisablehtmlfolder).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/html/disableHtmlFolder.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: faviconByEntries
|
|
|
5
5
|
# html.faviconByEntries
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.faviconByEntries](https://modernjs.dev/builder/en/api/config-html.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [html.faviconByEntries](https://modernjs.dev/builder/en/api/config-html.html#htmlfaviconbyentries).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/html/faviconByEntries.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: favicon
|
|
|
5
5
|
# html.favicon
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.favicon](https://modernjs.dev/builder/en/api/config-html.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [html.favicon](https://modernjs.dev/builder/en/api/config-html.html#htmlfavicon).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/html/favicon.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: injectByEntries
|
|
|
5
5
|
# html.injectByEntries
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.injectByEntries](https://modernjs.dev/builder/en/api/config-html.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [html.injectByEntries](https://modernjs.dev/builder/en/api/config-html.html#htmlinjectbyentries).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/html/injectByEntries.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: inject
|
|
|
5
5
|
# html.inject
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.inject](https://modernjs.dev/builder/en/api/config-html.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [html.inject](https://modernjs.dev/builder/en/api/config-html.html#htmlinject).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/html/inject.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: metaByEntries
|
|
|
5
5
|
# html.metaByEntries
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.metaByEntries](https://modernjs.dev/builder/en/api/config-html.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [html.metaByEntries](https://modernjs.dev/builder/en/api/config-html.html#htmlmetabyentries).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/html/metaByEntries.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: meta
|
|
|
5
5
|
# html.meta
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.meta](https://modernjs.dev/builder/en/api/config-html.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [html.meta](https://modernjs.dev/builder/en/api/config-html.html#htmlmeta).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/html/meta.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: mountId
|
|
|
5
5
|
# html.mountId
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.mountId](https://modernjs.dev/builder/en/api/config-html.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [html.mountId](https://modernjs.dev/builder/en/api/config-html.html#htmlmountid).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/html/mountId.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: tagsByEntries
|
|
|
5
5
|
# html.tagsByEntries
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.tagsByEntries](https://modernjs.dev/builder/en/api/config-html.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [html.tagsByEntries](https://modernjs.dev/builder/en/api/config-html.html#htmltagsbyentries).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/html/tagsByEntries.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: tags
|
|
|
5
5
|
# html.tags
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.tags](https://modernjs.dev/builder/en/api/config-html.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [html.tags](https://modernjs.dev/builder/en/api/config-html.html#htmltags).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/html/tags.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: templateByEntries
|
|
|
5
5
|
# html.templateByEntries
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.templateByEntries](https://modernjs.dev/builder/en/api/config-html.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [html.templateByEntries](https://modernjs.dev/builder/en/api/config-html.html#htmltemplatebyentries).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/html/templateByEntries.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: templateParametersByEntries
|
|
|
5
5
|
# html.templateParametersByEntries
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.templateParametersByEntries](https://modernjs.dev/builder/en/api/config-html.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [html.templateParametersByEntries](https://modernjs.dev/builder/en/api/config-html.html#htmltemplateparametersbyentries).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/html/templateParametersByEntries.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: templateParameters
|
|
|
5
5
|
# html.templateParameters
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.templateParameters](https://modernjs.dev/builder/en/api/config-html.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [html.templateParameters](https://modernjs.dev/builder/en/api/config-html.html#htmltemplateparameters).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/html/templateParameters.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: template
|
|
|
5
5
|
# html.template
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.template](https://modernjs.dev/builder/en/api/config-html.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [html.template](https://modernjs.dev/builder/en/api/config-html.html#htmltemplate).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/html/template.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: titleByEntries
|
|
|
5
5
|
# html.titleByEntries
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.titleByEntries](https://modernjs.dev/builder/en/api/config-html.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [html.titleByEntries](https://modernjs.dev/builder/en/api/config-html.html#htmltitlebyentries).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/html/titleByEntries.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: title
|
|
|
5
5
|
# html.title
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.title](https://modernjs.dev/builder/en/api/config-html.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [html.title](https://modernjs.dev/builder/en/api/config-html.html#htmltitle).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/html/title.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: assetPrefix
|
|
|
5
5
|
# output.assetPrefix
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [output.assetPrefix](https://modernjs.dev/builder/en/api/config-output.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.assetPrefix](https://modernjs.dev/builder/en/api/config-output.html#outputassetprefix).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/assetPrefix.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: assetsRetry
|
|
|
5
5
|
# output.assetsRetry
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [output.assetsRetry](https://modernjs.dev/builder/en/api/config-output.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.assetsRetry](https://modernjs.dev/builder/en/api/config-output.html#outputassetsretry).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/assetsRetry.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: charset
|
|
|
5
5
|
# output.charset
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [output.charset](https://modernjs.dev/builder/en/api/config-output.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.charset](https://modernjs.dev/builder/en/api/config-output.html#outputcharset).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/charset.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: cleanDistPath
|
|
|
5
5
|
# output.cleanDistPath
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [output.cleanDistPath](https://modernjs.dev/builder/en/api/config-output.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.cleanDistPath](https://modernjs.dev/builder/en/api/config-output.html#outputcleandistpath).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/cleanDistPath.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: convertToRem
|
|
|
5
5
|
# output.convertToRem
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [output.convertToRem](https://modernjs.dev/builder/en/api/config-output.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.convertToRem](https://modernjs.dev/builder/en/api/config-output.html#outputconverttorem).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/convertToRem.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: copy
|
|
|
5
5
|
# output.copy
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [output.copy](https://modernjs.dev/builder/en/api/config-output.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.copy](https://modernjs.dev/builder/en/api/config-output.html#outputcopy).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/copy.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: cssModuleLocalIdentName
|
|
|
5
5
|
# output.cssModuleLocalIdentName
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [output.cssModuleLocalIdentName](https://modernjs.dev/builder/en/api/config-output.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.cssModuleLocalIdentName](https://modernjs.dev/builder/en/api/config-output.html#outputcssmodulelocalidentname).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/cssModuleLocalIdentName.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: dataUriLimit
|
|
|
5
5
|
# output.dataUriLimit
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [output.dataUriLimit](https://modernjs.dev/builder/en/api/config-output.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.dataUriLimit](https://modernjs.dev/builder/en/api/config-output.html#outputdataurilimit).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/dataUriLimit.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: disableCssExtract
|
|
|
5
5
|
# output.disableCssExtract
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [output.disableCssExtract](https://modernjs.dev/builder/en/api/config-output.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.disableCssExtract](https://modernjs.dev/builder/en/api/config-output.html#outputdisablecssextract).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/disableCssExtract.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: disableCssModuleExtension
|
|
|
5
5
|
# output.disableCssModuleExtension
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [output.disableCssModuleExtension](https://modernjs.dev/builder/en/api/config-output.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.disableCssModuleExtension](https://modernjs.dev/builder/en/api/config-output.html#outputdisablecssmoduleextension).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/disableCssModuleExtension.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: disableFilenameHash
|
|
|
5
5
|
# output.disableFilenameHash
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [output.disableFilenameHash](https://modernjs.dev/builder/en/api/config-output.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.disableFilenameHash](https://modernjs.dev/builder/en/api/config-output.html#outputdisablefilenamehash).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/disableFilenameHash.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: disableInlineRuntimeChunk
|
|
|
5
5
|
# output.disableInlineRuntimeChunk
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [output.disableInlineRuntimeChunk](https://modernjs.dev/builder/en/api/config-output.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.disableInlineRuntimeChunk](https://modernjs.dev/builder/en/api/config-output.html#outputdisableinlineruntimechunk).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/disableInlineRuntimeChunk.md'
|
|
@@ -5,7 +5,7 @@ sidebar_label: disableMinimize
|
|
|
5
5
|
# output.disableMinimize
|
|
6
6
|
|
|
7
7
|
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [output.disableMinimize](https://modernjs.dev/builder/en/api/config-output.html#
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.disableMinimize](https://modernjs.dev/builder/en/api/config-output.html#outputdisableminimize).
|
|
9
9
|
:::
|
|
10
10
|
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/disableMinimize.md'
|