@modern-js/main-doc 2.2.0 → 2.3.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/components/global-proxy-config.mdx +2 -2
- package/en/configure/app/auto-load-plugin.mdx +2 -2
- package/en/configure/app/bff/prefix.mdx +2 -2
- package/en/configure/app/bff/proxy.mdx +2 -2
- package/en/configure/app/builder-plugins.mdx +2 -2
- package/en/configure/app/deploy/microFrontend.mdx +6 -6
- package/en/configure/app/dev/asset-prefix.mdx +4 -3
- package/en/configure/app/dev/hmr.mdx +4 -3
- package/en/configure/app/dev/https.mdx +4 -3
- package/en/configure/app/dev/port.mdx +4 -3
- package/en/configure/app/dev/progress-bar.mdx +4 -3
- package/en/configure/app/dev/start-url.mdx +4 -3
- package/en/configure/app/experiments/lazy-compilation.mdx +4 -3
- package/en/configure/app/html/app-icon.mdx +4 -3
- package/en/configure/app/html/crossorigin.mdx +4 -3
- package/en/configure/app/html/disable-html-folder.mdx +4 -3
- package/en/configure/app/html/favicon-by-entries.mdx +4 -3
- package/en/configure/app/html/favicon.mdx +4 -3
- package/en/configure/app/html/inject-by-entries.mdx +4 -3
- package/en/configure/app/html/inject.mdx +4 -3
- package/en/configure/app/html/meta-by-entries.mdx +4 -3
- package/en/configure/app/html/meta.mdx +4 -3
- package/en/configure/app/html/mount-id.mdx +4 -3
- package/en/configure/app/html/tags-by-entries.mdx +4 -3
- package/en/configure/app/html/tags.mdx +4 -3
- package/en/configure/app/html/template-by-entries.mdx +4 -3
- package/en/configure/app/html/template-parameters-by-entries.mdx +4 -3
- package/en/configure/app/html/template-parameters.mdx +4 -3
- package/en/configure/app/html/template.mdx +4 -3
- package/en/configure/app/html/title-by-entries.mdx +4 -3
- package/en/configure/app/html/title.mdx +4 -3
- package/en/configure/app/output/asset-prefix.mdx +4 -3
- package/en/configure/app/output/assets-retry.mdx +4 -3
- package/en/configure/app/output/charset.mdx +4 -3
- package/en/configure/app/output/clean-dist-path.mdx +4 -3
- package/en/configure/app/output/convert-to-rem.mdx +4 -3
- package/en/configure/app/output/copy.mdx +4 -3
- package/en/configure/app/output/css-module-local-ident-name.mdx +4 -3
- package/en/configure/app/output/data-uri-limit.mdx +4 -3
- package/en/configure/app/output/disable-css-extract.mdx +4 -3
- package/en/configure/app/output/disable-css-module-extension.mdx +4 -3
- package/en/configure/app/output/disable-filename-hash.mdx +4 -3
- package/en/configure/app/output/disable-inline-runtime-chunk.mdx +4 -3
- package/en/configure/app/output/disable-minimize.mdx +4 -3
- package/en/configure/app/output/disable-node-polyfill.mdx +2 -2
- package/en/configure/app/output/disable-source-map.mdx +4 -3
- package/en/configure/app/output/disable-ts-checker.mdx +4 -3
- package/en/configure/app/output/dist-path.mdx +4 -3
- package/en/configure/app/output/enable-asset-fallback.mdx +4 -3
- package/en/configure/app/output/enable-asset-manifest.mdx +4 -3
- package/en/configure/app/output/enable-css-module-tsdeclaration.mdx +4 -3
- package/en/configure/app/output/enable-inline-scripts.mdx +4 -3
- package/en/configure/app/output/enable-inline-styles.mdx +4 -3
- package/en/configure/app/output/enable-latest-decorators.mdx +4 -3
- package/en/configure/app/output/externals.mdx +4 -3
- package/en/configure/app/output/filename.mdx +4 -3
- package/en/configure/app/output/legal-comments.mdx +4 -3
- package/en/configure/app/output/override-browserslist.mdx +4 -3
- package/en/configure/app/output/polyfill.mdx +4 -3
- package/en/configure/app/output/ssg.mdx +2 -2
- package/en/configure/app/output/svg-default-export.mdx +4 -3
- package/en/configure/app/performance/build-cache.mdx +4 -3
- package/en/configure/app/performance/bundle-analyze.mdx +4 -3
- package/en/configure/app/performance/chunk-split.mdx +4 -3
- package/en/configure/app/performance/print-file-size.mdx +4 -3
- package/en/configure/app/performance/profile.mdx +4 -3
- package/en/configure/app/performance/remove-console.mdx +4 -3
- package/en/configure/app/performance/remove-moment-locale.mdx +4 -3
- package/en/configure/app/plugins.mdx +2 -2
- package/en/configure/app/runtime/intro.mdx +2 -2
- package/en/configure/app/runtime/master-app.mdx +1 -2
- package/en/configure/app/runtime/router.mdx +6 -6
- package/en/configure/app/runtime/state.mdx +14 -14
- package/en/configure/app/security/check-syntax.mdx +13 -0
- package/en/configure/app/security/sri.mdx +4 -3
- package/en/configure/app/server/base-url.mdx +2 -2
- package/en/configure/app/server/enable-framework-ext.mdx +2 -2
- package/en/configure/app/server/port.mdx +2 -2
- package/en/configure/app/server/public-routes.mdx +2 -2
- package/en/configure/app/server/routes.mdx +2 -2
- package/en/configure/app/server/ssr-by-entries.mdx +2 -2
- package/en/configure/app/server/ssr.mdx +2 -2
- package/en/configure/app/source/alias.mdx +4 -3
- package/en/configure/app/source/compile-js-data-uri.mdx +4 -3
- package/en/configure/app/source/config-dir.mdx +2 -2
- package/en/configure/app/source/define.mdx +4 -3
- package/en/configure/app/source/design-system.mdx +2 -2
- package/en/configure/app/source/disable-default-entries.mdx +2 -2
- package/en/configure/app/source/disable-entry-dirs.mdx +2 -2
- package/en/configure/app/source/enable-async-entry.mdx +2 -2
- package/en/configure/app/source/entries-dir.mdx +2 -2
- package/en/configure/app/source/entries.mdx +2 -2
- package/en/configure/app/source/exclude.mdx +4 -3
- package/en/configure/app/source/global-vars.mdx +4 -3
- package/en/configure/app/source/include.mdx +4 -3
- package/en/configure/app/source/module-scopes.mdx +4 -3
- package/en/configure/app/source/pre-entry.mdx +4 -3
- package/en/configure/app/source/resolve-extension-prefix.mdx +4 -3
- package/en/configure/app/source/resolve-main-fields.mdx +4 -3
- package/en/configure/app/testing/transformer.mdx +2 -2
- package/en/configure/app/tools/autoprefixer.mdx +4 -3
- package/en/configure/app/tools/babel.mdx +4 -3
- package/en/configure/app/tools/css-extract.mdx +4 -3
- package/en/configure/app/tools/css-loader.mdx +4 -3
- package/en/configure/app/tools/dev-server.mdx +4 -3
- package/en/configure/app/tools/esbuild.mdx +2 -2
- package/en/configure/app/tools/html-plugin.mdx +4 -3
- package/en/configure/app/tools/inspector.mdx +4 -3
- package/en/configure/app/tools/jest.mdx +2 -2
- package/en/configure/app/tools/less.mdx +4 -3
- package/en/configure/app/tools/minify-css.mdx +4 -3
- package/en/configure/app/tools/postcss.mdx +4 -3
- package/en/configure/app/tools/pug.mdx +4 -3
- package/en/configure/app/tools/sass.mdx +4 -3
- package/en/configure/app/tools/style-loader.mdx +4 -3
- package/en/configure/app/tools/styled-components.mdx +4 -3
- package/en/configure/app/tools/swc.mdx +2 -2
- package/en/configure/app/tools/tailwindcss.mdx +8 -16
- package/en/configure/app/tools/terser.mdx +4 -3
- package/en/configure/app/tools/ts-checker.mdx +4 -3
- package/en/configure/app/tools/ts-loader.mdx +4 -3
- package/en/configure/app/tools/webpack-chain.mdx +4 -3
- package/en/configure/app/tools/webpack.mdx +4 -3
- package/en/configure/app/usage.mdx +54 -8
- package/en/guides/basic-features/builder.mdx +3 -3
- package/en/guides/topic-detail/generator/config/common.mdx +12 -12
- package/package.json +3 -3
- package/scripts/config.ts +5 -4
- package/scripts/summary.en.json +1 -1
- package/scripts/summary.zh.json +1 -1
- package/zh/apis/app/commands/test.mdx +1 -1
- package/zh/apis/app/hooks/api/functions/api.mdx +2 -2
- package/zh/apis/app/hooks/api/test.mdx +1 -1
- package/zh/apis/app/hooks/config/storybook.mdx +1 -1
- package/zh/apis/app/hooks/config/upload.mdx +1 -1
- package/zh/apis/app/hooks/server/test.mdx +1 -1
- package/zh/apis/app/hooks/src/stories.mdx +1 -1
- package/zh/apis/app/hooks/src/test.mdx +1 -1
- package/zh/apis/app/runtime/testing/cleanup.mdx +1 -1
- package/zh/apis/monorepo/commands/bump.mdx +1 -1
- package/zh/apis/monorepo/commands/change.mdx +1 -1
- package/zh/apis/monorepo/hooks/apps.mdx +1 -1
- package/zh/apis/monorepo/hooks/examples.mdx +1 -1
- package/zh/apis/monorepo/hooks/features.mdx +1 -1
- package/zh/apis/monorepo/hooks/packages.mdx +1 -1
- package/zh/components/global-proxy-config.mdx +3 -3
- package/zh/configure/app/auto-load-plugin.mdx +2 -2
- package/zh/configure/app/bff/prefix.mdx +2 -2
- package/zh/configure/app/bff/proxy.mdx +3 -3
- package/zh/configure/app/builder-plugins.mdx +2 -2
- package/zh/configure/app/deploy/microFrontend.mdx +6 -6
- package/zh/configure/app/dev/asset-prefix.mdx +4 -3
- package/zh/configure/app/dev/hmr.mdx +4 -3
- package/zh/configure/app/dev/https.mdx +4 -3
- package/zh/configure/app/dev/port.mdx +4 -3
- package/zh/configure/app/dev/progress-bar.mdx +4 -3
- package/zh/configure/app/dev/start-url.mdx +4 -3
- package/zh/configure/app/experiments/lazy-compilation.mdx +4 -3
- package/zh/configure/app/html/app-icon.mdx +4 -3
- package/zh/configure/app/html/crossorigin.mdx +4 -3
- package/zh/configure/app/html/disable-html-folder.mdx +4 -3
- package/zh/configure/app/html/favicon-by-entries.mdx +4 -3
- package/zh/configure/app/html/favicon.mdx +4 -3
- package/zh/configure/app/html/inject-by-entries.mdx +4 -3
- package/zh/configure/app/html/inject.mdx +4 -3
- package/zh/configure/app/html/meta-by-entries.mdx +4 -3
- package/zh/configure/app/html/meta.mdx +4 -3
- package/zh/configure/app/html/mount-id.mdx +4 -3
- package/zh/configure/app/html/tags-by-entries.mdx +4 -3
- package/zh/configure/app/html/tags.mdx +4 -3
- package/zh/configure/app/html/template-by-entries.mdx +4 -3
- package/zh/configure/app/html/template-parameters-by-entries.mdx +4 -3
- package/zh/configure/app/html/template-parameters.mdx +4 -3
- package/zh/configure/app/html/template.mdx +4 -3
- package/zh/configure/app/html/title-by-entries.mdx +4 -3
- package/zh/configure/app/html/title.mdx +4 -3
- package/zh/configure/app/output/asset-prefix.mdx +4 -3
- package/zh/configure/app/output/assets-retry.mdx +4 -3
- package/zh/configure/app/output/charset.mdx +4 -3
- package/zh/configure/app/output/clean-dist-path.mdx +4 -3
- package/zh/configure/app/output/convert-to-rem.mdx +4 -3
- package/zh/configure/app/output/copy.mdx +4 -3
- package/zh/configure/app/output/css-module-local-ident-name.mdx +4 -3
- package/zh/configure/app/output/data-uri-limit.mdx +4 -3
- package/zh/configure/app/output/disable-css-extract.mdx +4 -3
- package/zh/configure/app/output/disable-css-module-extension.mdx +4 -3
- package/zh/configure/app/output/disable-filename-hash.mdx +4 -3
- package/zh/configure/app/output/disable-inline-runtime-chunk.mdx +4 -3
- package/zh/configure/app/output/disable-minimize.mdx +4 -3
- package/zh/configure/app/output/disable-node-polyfill.mdx +2 -2
- package/zh/configure/app/output/disable-source-map.mdx +4 -3
- package/zh/configure/app/output/disable-ts-checker.mdx +4 -3
- package/zh/configure/app/output/dist-path.mdx +4 -3
- package/zh/configure/app/output/enable-asset-fallback.mdx +4 -3
- package/zh/configure/app/output/enable-asset-manifest.mdx +4 -3
- package/zh/configure/app/output/enable-css-module-tsdeclaration.mdx +4 -3
- package/zh/configure/app/output/enable-inline-scripts.mdx +4 -3
- package/zh/configure/app/output/enable-inline-styles.mdx +4 -3
- package/zh/configure/app/output/enable-latest-decorators.mdx +4 -3
- package/zh/configure/app/output/externals.mdx +4 -3
- package/zh/configure/app/output/filename.mdx +4 -3
- package/zh/configure/app/output/legal-comments.mdx +4 -3
- package/zh/configure/app/output/override-browserslist.mdx +4 -3
- package/zh/configure/app/output/polyfill.mdx +4 -3
- package/zh/configure/app/output/ssg.mdx +2 -2
- package/zh/configure/app/output/svg-default-export.mdx +4 -3
- package/zh/configure/app/performance/build-cache.mdx +4 -3
- package/zh/configure/app/performance/bundle-analyze.mdx +4 -3
- package/zh/configure/app/performance/chunk-split.mdx +4 -3
- package/zh/configure/app/performance/print-file-size.mdx +4 -3
- package/zh/configure/app/performance/profile.mdx +4 -3
- package/zh/configure/app/performance/remove-console.mdx +4 -3
- package/zh/configure/app/performance/remove-moment-locale.mdx +4 -3
- package/zh/configure/app/plugins.mdx +2 -2
- package/zh/configure/app/runtime/intro.mdx +3 -3
- package/zh/configure/app/runtime/master-app.mdx +1 -1
- package/zh/configure/app/runtime/router.mdx +6 -6
- package/zh/configure/app/runtime/state.mdx +14 -14
- package/zh/configure/app/security/check-syntax.mdx +13 -0
- package/zh/configure/app/security/sri.mdx +4 -3
- package/zh/configure/app/server/base-url.mdx +2 -2
- package/zh/configure/app/server/enable-framework-ext.mdx +2 -2
- package/zh/configure/app/server/port.mdx +2 -2
- package/zh/configure/app/server/public-routes.mdx +2 -2
- package/zh/configure/app/server/routes.mdx +2 -2
- package/zh/configure/app/server/ssr-by-entries.mdx +3 -3
- package/zh/configure/app/server/ssr.mdx +2 -2
- package/zh/configure/app/source/alias.mdx +4 -3
- package/zh/configure/app/source/compile-js-data-uri.mdx +4 -3
- package/zh/configure/app/source/config-dir.mdx +2 -2
- package/zh/configure/app/source/define.mdx +4 -3
- package/zh/configure/app/source/design-system.mdx +2 -2
- package/zh/configure/app/source/disable-default-entries.mdx +2 -2
- package/zh/configure/app/source/disable-entry-dirs.mdx +2 -2
- package/zh/configure/app/source/enable-async-entry.mdx +2 -2
- package/zh/configure/app/source/entries-dir.mdx +2 -2
- package/zh/configure/app/source/entries.mdx +2 -2
- package/zh/configure/app/source/exclude.mdx +4 -3
- package/zh/configure/app/source/global-vars.mdx +4 -3
- package/zh/configure/app/source/include.mdx +4 -3
- package/zh/configure/app/source/module-scopes.mdx +4 -3
- package/zh/configure/app/source/pre-entry.mdx +4 -3
- package/zh/configure/app/source/resolve-extension-prefix.mdx +4 -3
- package/zh/configure/app/source/resolve-main-fields.mdx +4 -3
- package/zh/configure/app/testing/transformer.mdx +2 -2
- package/zh/configure/app/tools/autoprefixer.mdx +4 -3
- package/zh/configure/app/tools/babel.mdx +4 -3
- package/zh/configure/app/tools/css-extract.mdx +4 -3
- package/zh/configure/app/tools/css-loader.mdx +4 -3
- package/zh/configure/app/tools/dev-server.mdx +4 -3
- package/zh/configure/app/tools/esbuild.mdx +2 -2
- package/zh/configure/app/tools/html-plugin.mdx +4 -3
- package/zh/configure/app/tools/inspector.mdx +4 -3
- package/zh/configure/app/tools/jest.mdx +2 -2
- package/zh/configure/app/tools/less.mdx +4 -3
- package/zh/configure/app/tools/minify-css.mdx +4 -3
- package/zh/configure/app/tools/postcss.mdx +4 -3
- package/zh/configure/app/tools/pug.mdx +4 -3
- package/zh/configure/app/tools/sass.mdx +4 -3
- package/zh/configure/app/tools/style-loader.mdx +4 -3
- package/zh/configure/app/tools/styled-components.mdx +4 -3
- package/zh/configure/app/tools/swc.mdx +2 -2
- package/zh/configure/app/tools/tailwindcss.mdx +10 -16
- package/zh/configure/app/tools/terser.mdx +4 -3
- package/zh/configure/app/tools/ts-checker.mdx +4 -3
- package/zh/configure/app/tools/ts-loader.mdx +4 -3
- package/zh/configure/app/tools/webpack-chain.mdx +4 -3
- package/zh/configure/app/tools/webpack.mdx +4 -3
- package/zh/configure/app/usage.mdx +54 -8
- package/zh/guides/advanced-features/bff/function.mdx +3 -3
- package/zh/guides/advanced-features/code-split.mdx +1 -1
- package/zh/guides/advanced-features/compatibility.mdx +1 -1
- package/zh/guides/advanced-features/eslint.mdx +3 -3
- package/zh/guides/advanced-features/ssr.mdx +1 -1
- package/zh/guides/basic-features/alias.mdx +1 -1
- package/zh/guides/basic-features/builder.mdx +2 -2
- package/zh/guides/basic-features/css/postcss.mdx +1 -1
- package/zh/guides/basic-features/html.mdx +1 -1
- package/zh/guides/topic-detail/framework-plugin/hook.mdx +1 -1
- package/zh/guides/topic-detail/generator/config/common.mdx +12 -12
- package/zh/guides/topic-detail/generator/plugin/api/input/addInputBefore.mdx +1 -1
- package/zh/guides/topic-detail/micro-frontend/c05-mixed-stack.mdx +1 -1
- package/zh/guides/topic-detail/model/auto-actions.mdx +1 -1
- package/zh/guides/topic-detail/model/define-model.mdx +1 -1
- package/zh/guides/topic-detail/model/manage-effects.mdx +1 -1
- package/zh/guides/topic-detail/model/quick-start.mdx +2 -2
- package/zh/guides/topic-detail/model/test-model.mdx +1 -1
- package/zh/guides/topic-detail/model/use-model.mdx +3 -3
- package/zh/guides/topic-detail/monorepo/create-sub-project.mdx +2 -2
- package/zh/guides/topic-detail/monorepo/sub-project-interface.mdx +2 -2
- package/zh/tutorials/first-app/c02-component.mdx +1 -1
- package/zh/tutorials/first-app/c03-css.mdx +3 -3
- package/zh/tutorials/first-app/c04-routes.mdx +1 -1
- package/zh/tutorials/first-app/c06-model.mdx +1 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: output.disableCssExtract
|
|
3
2
|
sidebar_label: disableCssExtract
|
|
4
3
|
---
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
# output.disableCssExtract
|
|
6
|
+
|
|
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#output-disablecssextract)。
|
|
8
9
|
:::
|
|
9
10
|
|
|
10
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/disableCssExtract.md'
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: output.disableCssModuleExtension
|
|
3
2
|
sidebar_label: disableCssModuleExtension
|
|
4
3
|
---
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
# output.disableCssModuleExtension
|
|
6
|
+
|
|
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#output-disablecssmoduleextension)。
|
|
8
9
|
:::
|
|
9
10
|
|
|
10
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/disableCssModuleExtension.md'
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: output.disableFilenameHash
|
|
3
2
|
sidebar_label: disableFilenameHash
|
|
4
3
|
---
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
# output.disableFilenameHash
|
|
6
|
+
|
|
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#output-disablefilenamehash)。
|
|
8
9
|
:::
|
|
9
10
|
|
|
10
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/disableFilenameHash.md'
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: output.disableInlineRuntimeChunk
|
|
3
2
|
sidebar_label: disableInlineRuntimeChunk
|
|
4
3
|
---
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
# output.disableInlineRuntimeChunk
|
|
6
|
+
|
|
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#output-disableinlineruntimechunk)。
|
|
8
9
|
:::
|
|
9
10
|
|
|
10
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/disableInlineRuntimeChunk.md'
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: output.disableMinimize
|
|
3
2
|
sidebar_label: disableMinimize
|
|
4
3
|
---
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
# output.disableMinimize
|
|
6
|
+
|
|
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#output-disableminimize)。
|
|
8
9
|
:::
|
|
9
10
|
|
|
10
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/disableMinimize.md'
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: output.disableSourceMap
|
|
3
2
|
sidebar_label: disableSourceMap
|
|
4
3
|
---
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
# output.disableSourceMap
|
|
6
|
+
|
|
7
|
+
:::tip
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.disableSourceMap](https://modernjs.dev/builder/en/api/config-output.html#output-disablesourcemap)。
|
|
8
9
|
:::
|
|
9
10
|
|
|
10
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/disableSourceMap.md'
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: output.disableTsChecker
|
|
3
2
|
sidebar_label: disableTsChecker
|
|
4
3
|
---
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
# output.disableTsChecker
|
|
6
|
+
|
|
7
|
+
:::tip
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.disableTsChecker](https://modernjs.dev/builder/en/api/config-output.html#output-disabletschecker)。
|
|
8
9
|
:::
|
|
9
10
|
|
|
10
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/disableTsChecker.md'
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: output.distPath
|
|
3
2
|
sidebar_label: distPath
|
|
4
3
|
---
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
# output.distPath
|
|
6
|
+
|
|
7
|
+
:::tip
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.distPath](https://modernjs.dev/builder/en/api/config-output.html#output-distpath)。
|
|
8
9
|
:::
|
|
9
10
|
|
|
10
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/distPath.md'
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: output.enableAssetFallback
|
|
3
2
|
sidebar_label: enableAssetFallback
|
|
4
3
|
---
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
# output.enableAssetFallback
|
|
6
|
+
|
|
7
|
+
:::tip
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.enableAssetFallback](https://modernjs.dev/builder/en/api/config-output.html#output-enableassetfallback)。
|
|
8
9
|
:::
|
|
9
10
|
|
|
10
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/enableAssetFallback.md'
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: output.enableAssetManifest
|
|
3
2
|
sidebar_label: enableAssetManifest
|
|
4
3
|
---
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
# output.enableAssetManifest
|
|
6
|
+
|
|
7
|
+
:::tip
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.enableAssetManifest](https://modernjs.dev/builder/en/api/config-output.html#output-enableassetmanifest)。
|
|
8
9
|
:::
|
|
9
10
|
|
|
10
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/enableAssetManifest.md'
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: output.enableCssModuleTSDeclaration
|
|
3
2
|
sidebar_label: enableCssModuleTSDeclaration
|
|
4
3
|
---
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
# output.enableCssModuleTSDeclaration
|
|
6
|
+
|
|
7
|
+
:::tip
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.enableCssModuleTSDeclaration](https://modernjs.dev/builder/en/api/config-output.html#output-enablecssmoduletsdeclaration)。
|
|
8
9
|
:::
|
|
9
10
|
|
|
10
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/enableCssModuleTSDeclaration.md'
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: output.enableInlineScripts
|
|
3
2
|
sidebar_label: enableInlineScripts
|
|
4
3
|
---
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
# output.enableInlineScripts
|
|
6
|
+
|
|
7
|
+
:::tip
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.enableInlineScripts](https://modernjs.dev/builder/en/api/config-output.html#output-enableinlinescripts)。
|
|
8
9
|
:::
|
|
9
10
|
|
|
10
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/enableInlineScripts.md'
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: output.enableInlineStyles
|
|
3
2
|
sidebar_label: enableInlineStyles
|
|
4
3
|
---
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
# output.enableInlineStyles
|
|
6
|
+
|
|
7
|
+
:::tip
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.enableInlineStyles](https://modernjs.dev/builder/en/api/config-output.html#output-enableinlinestyles)。
|
|
8
9
|
:::
|
|
9
10
|
|
|
10
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/enableInlineStyles.md'
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: output.enableLatestDecorators
|
|
3
2
|
sidebar_label: enableLatestDecorators
|
|
4
3
|
---
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
# output.enableLatestDecorators
|
|
6
|
+
|
|
7
|
+
:::tip
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.enableLatestDecorators](https://modernjs.dev/builder/en/api/config-output.html#output-enablelatestdecorators)。
|
|
8
9
|
:::
|
|
9
10
|
|
|
10
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/enableLatestDecorators.md'
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: output.externals
|
|
3
2
|
sidebar_label: externals
|
|
4
3
|
---
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
# output.externals
|
|
6
|
+
|
|
7
|
+
:::tip
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.externals](https://modernjs.dev/builder/en/api/config-output.html#output-externals)。
|
|
8
9
|
:::
|
|
9
10
|
|
|
10
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/externals.md'
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: output.filename
|
|
3
2
|
sidebar_label: filename
|
|
4
3
|
---
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
# output.filename
|
|
6
|
+
|
|
7
|
+
:::tip
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.filename](https://modernjs.dev/builder/en/api/config-output.html#output-filename)。
|
|
8
9
|
:::
|
|
9
10
|
|
|
10
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/filename.md'
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: output.legalComments
|
|
3
2
|
sidebar_label: legalComments
|
|
4
3
|
---
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
# output.legalComments
|
|
6
|
+
|
|
7
|
+
:::tip
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.legalComments](https://modernjs.dev/builder/en/api/config-output.html#output-legalcomments)。
|
|
8
9
|
:::
|
|
9
10
|
|
|
10
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/legalComments.md'
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: output.overrideBrowserslist
|
|
3
2
|
sidebar_label: overrideBrowserslist
|
|
4
3
|
---
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
# output.overrideBrowserslist
|
|
6
|
+
|
|
7
|
+
:::tip
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.overrideBrowserslist](https://modernjs.dev/builder/en/api/config-output.html#output-overridebrowserslist)。
|
|
8
9
|
:::
|
|
9
10
|
|
|
10
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/overrideBrowserslist.md'
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: output.polyfill
|
|
3
2
|
sidebar_label: polyfill
|
|
4
3
|
---
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
# output.polyfill
|
|
6
|
+
|
|
7
|
+
:::tip
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.polyfill](https://modernjs.dev/builder/en/api/config-output.html#output-polyfill)。
|
|
8
9
|
:::
|
|
9
10
|
|
|
10
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/polyfill.md'
|
|
@@ -4,8 +4,8 @@ sidebar_label: ssg
|
|
|
4
4
|
|
|
5
5
|
# output.ssg
|
|
6
6
|
|
|
7
|
-
- Type
|
|
8
|
-
- Default
|
|
7
|
+
- **Type:** `boolean` | `object` | `function`
|
|
8
|
+
- **Default:** `undefined`
|
|
9
9
|
|
|
10
10
|
Enable the SSG for **Self-controlled Routing** or **Conventional Routing**.
|
|
11
11
|
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: output.svgDefaultExport
|
|
3
2
|
sidebar_label: svgDefaultExport
|
|
4
3
|
---
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
# output.svgDefaultExport
|
|
6
|
+
|
|
7
|
+
:::tip
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.svgDefaultExport](https://modernjs.dev/builder/en/api/config-output.html#output-svgdefaultexport)。
|
|
8
9
|
:::
|
|
9
10
|
|
|
10
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/svgDefaultExport.md'
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: performance.buildCache
|
|
3
2
|
sidebar_label: buildCache
|
|
4
3
|
---
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
# performance.buildCache
|
|
6
|
+
|
|
7
|
+
:::tip
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [performance.buildCache](https://modernjs.dev/builder/en/api/config-performance.html#performance-buildcache)。
|
|
8
9
|
:::
|
|
9
10
|
|
|
10
11
|
import Main from '@modern-js/builder-doc/docs/en/config/performance/buildCache.md'
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: performance.bundleAnalyze
|
|
3
2
|
sidebar_label: bundleAnalyze
|
|
4
3
|
---
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
# performance.bundleAnalyze
|
|
6
|
+
|
|
7
|
+
:::tip
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [performance.bundleAnalyze](https://modernjs.dev/builder/en/api/config-performance.html#performance-bundleanalyze)。
|
|
8
9
|
:::
|
|
9
10
|
|
|
10
11
|
import Main from '@modern-js/builder-doc/docs/en/config/performance/bundleAnalyze.md'
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: performance.chunkSplit
|
|
3
2
|
sidebar_label: chunkSplit
|
|
4
3
|
---
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
# performance.chunkSplit
|
|
6
|
+
|
|
7
|
+
:::tip
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [performance.chunkSplit](https://modernjs.dev/builder/en/api/config-performance.html#performance-chunksplit)。
|
|
8
9
|
:::
|
|
9
10
|
|
|
10
11
|
import Main from '@modern-js/builder-doc/docs/en/config/performance/chunkSplit.md'
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: performance.printFileSize
|
|
3
2
|
sidebar_label: printFileSize
|
|
4
3
|
---
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
# performance.printFileSize
|
|
6
|
+
|
|
7
|
+
:::tip
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [performance.printFileSize](https://modernjs.dev/builder/en/api/config-performance.html#performance-printfilesize)。
|
|
8
9
|
:::
|
|
9
10
|
|
|
10
11
|
import Main from '@modern-js/builder-doc/docs/en/config/performance/printFileSize.md'
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: performance.profile
|
|
3
2
|
sidebar_label: profile
|
|
4
3
|
---
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
# performance.profile
|
|
6
|
+
|
|
7
|
+
:::tip
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [performance.profile](https://modernjs.dev/builder/en/api/config-performance.html#performance-profile)。
|
|
8
9
|
:::
|
|
9
10
|
|
|
10
11
|
import Main from '@modern-js/builder-doc/docs/en/config/performance/profile.md'
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: performance.removeConsole
|
|
3
2
|
sidebar_label: removeConsole
|
|
4
3
|
---
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
# performance.removeConsole
|
|
6
|
+
|
|
7
|
+
:::tip
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [performance.removeConsole](https://modernjs.dev/builder/en/api/config-performance.html#performance-removeconsole)。
|
|
8
9
|
:::
|
|
9
10
|
|
|
10
11
|
import Main from '@modern-js/builder-doc/docs/en/config/performance/removeConsole.md'
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: performance.removeMomentLocale
|
|
3
2
|
sidebar_label: removeMomentLocale
|
|
4
3
|
---
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
# performance.removeMomentLocale
|
|
6
|
+
|
|
7
|
+
:::tip
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [performance.removeMomentLocale](https://modernjs.dev/builder/en/api/config-performance.html#performance-removemomentlocale)。
|
|
8
9
|
:::
|
|
9
10
|
|
|
10
11
|
import Main from '@modern-js/builder-doc/docs/en/config/performance/removeMomentLocale.md'
|
|
@@ -11,7 +11,7 @@ This section describes the configuration of the Runtime plugin.
|
|
|
11
11
|
|
|
12
12
|
### runtime
|
|
13
13
|
|
|
14
|
-
- Type
|
|
14
|
+
- **Type:** `Object`
|
|
15
15
|
|
|
16
16
|
The runtime is configured as follows:
|
|
17
17
|
|
|
@@ -69,7 +69,7 @@ defineConfig 中只能定义 Runtime 插件的具体配置内容,确认是否
|
|
|
69
69
|
|
|
70
70
|
### runtimeByEntries
|
|
71
71
|
|
|
72
|
-
- Type
|
|
72
|
+
- **Type:** `Object`
|
|
73
73
|
|
|
74
74
|
#### Introduce
|
|
75
75
|
|
|
@@ -8,22 +8,22 @@ import RouterLegacyTip from "@site-docs-en/components/router-legacy-tip"
|
|
|
8
8
|
|
|
9
9
|
# runtime.router
|
|
10
10
|
|
|
11
|
-
- Type
|
|
12
|
-
- Default
|
|
11
|
+
- **Type:** `boolean | Object`
|
|
12
|
+
- **Default:** `false`
|
|
13
13
|
|
|
14
14
|
When `router` is enabled, routing management of conventional routes provided by Modern.js is supported. Based on [React Router 6](https://reactrouter.com/).
|
|
15
15
|
|
|
16
16
|
## basename
|
|
17
17
|
|
|
18
|
-
- Type
|
|
19
|
-
- Default
|
|
18
|
+
- **Type:** `string`
|
|
19
|
+
- **Default:** ``
|
|
20
20
|
|
|
21
21
|
The basename of the app for situations where you can't deploy to the root of the domain, but a sub directory.
|
|
22
22
|
|
|
23
23
|
## supportHtml5History
|
|
24
24
|
|
|
25
|
-
- Type
|
|
26
|
-
- Default
|
|
25
|
+
- **Type:** `boolean`
|
|
26
|
+
- **Default:** `true`
|
|
27
27
|
|
|
28
28
|
If the value of `supportHtml5History` is `true`, `BrowserRouter` would be used, otherwise `HashRouter` would be used. `BrowserRouter` is recommended.
|
|
29
29
|
|
|
@@ -4,8 +4,8 @@ sidebar_label: state
|
|
|
4
4
|
|
|
5
5
|
# runtime.state
|
|
6
6
|
|
|
7
|
-
- Type
|
|
8
|
-
- Default
|
|
7
|
+
- **Type:** `boolean | object`
|
|
8
|
+
- **Default:** `false`
|
|
9
9
|
|
|
10
10
|
Once `state` is enabled, you can use [Model](/guides/topic-detail/model/quick-start) for state management.
|
|
11
11
|
|
|
@@ -13,42 +13,42 @@ The specific configuration items are as follows:
|
|
|
13
13
|
|
|
14
14
|
## models
|
|
15
15
|
|
|
16
|
-
- Type
|
|
17
|
-
- Default
|
|
16
|
+
- **Type:** `Array<Model>`
|
|
17
|
+
- **Default:** `[]`
|
|
18
18
|
|
|
19
19
|
Register model objects that are mounted in advance, and these models will be mounted immediately after the Reduck store is created. Generally, there is no need to mount in advance.
|
|
20
20
|
|
|
21
21
|
## initialState
|
|
22
22
|
|
|
23
|
-
- Type
|
|
24
|
-
- Default
|
|
23
|
+
- **Type:** `Object`
|
|
24
|
+
- **Default:** `{}`
|
|
25
25
|
|
|
26
26
|
Used to set the initial state of the global store. Generally used for SSR to initialize data during the hydration phase.
|
|
27
27
|
|
|
28
28
|
## immer
|
|
29
29
|
|
|
30
|
-
- Type
|
|
31
|
-
- Default
|
|
30
|
+
- **Type:** `boolean`
|
|
31
|
+
- **Default:** `true`
|
|
32
32
|
|
|
33
33
|
Whether to enable to update the state with mutable, it is enabled by default, and set to `false` if you want to disable it.
|
|
34
34
|
|
|
35
35
|
## effects
|
|
36
36
|
|
|
37
|
-
- Type
|
|
38
|
-
- Default
|
|
37
|
+
- **Type:** `boolean`
|
|
38
|
+
- **Default:** `true`
|
|
39
39
|
|
|
40
40
|
Whether to enable the side effect management feature, it is enabled by default, and set to `false` if you want to disable it.
|
|
41
41
|
|
|
42
42
|
## autoActions
|
|
43
43
|
|
|
44
|
-
- Type
|
|
45
|
-
- Default
|
|
44
|
+
- **Type:** `boolean`
|
|
45
|
+
- **Default:** `true`
|
|
46
46
|
|
|
47
47
|
Whether to enable the auto-generated actions feature, it is enabled by default, and set to `false` if you want to disable it.
|
|
48
48
|
|
|
49
49
|
## devtools
|
|
50
50
|
|
|
51
|
-
- Type
|
|
52
|
-
- Default
|
|
51
|
+
- **Type:** `boolean | EnhancerOptions`
|
|
52
|
+
- **Default:** `true`
|
|
53
53
|
|
|
54
54
|
Whether to enable devtools, it is enabled by default, and all parameters of [redux-devtools-extension](https://github.com/zalmoxisus/redux-devtools-extension/blob/master/docs/API/Arguments.md) are supported at the same time. If you want to disable it, set it to `false`.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_label: checkSyntax
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# security.checkSyntax
|
|
6
|
+
|
|
7
|
+
:::tip
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [security.checkSyntax](https://modernjs.dev/builder/en/api/config-security.html#security-checksyntax)。
|
|
9
|
+
:::
|
|
10
|
+
|
|
11
|
+
import Main from '@modern-js/builder-doc/docs/en/config/security/checkSyntax.md'
|
|
12
|
+
|
|
13
|
+
<Main />
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: security.sri
|
|
3
2
|
sidebar_label: sri
|
|
4
3
|
---
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
# security.sri
|
|
6
|
+
|
|
7
|
+
:::tip
|
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [security.sri](https://modernjs.dev/builder/en/api/config-security.html#security-sri)。
|
|
8
9
|
:::
|
|
9
10
|
|
|
10
11
|
import Main from '@modern-js/builder-doc/docs/en/config/security/sri.md'
|
|
@@ -4,8 +4,8 @@ sidebar_label: baseUrl
|
|
|
4
4
|
|
|
5
5
|
# server.baseUrl
|
|
6
6
|
|
|
7
|
-
- Type
|
|
8
|
-
- Default
|
|
7
|
+
- **Type:** `string | string[]`
|
|
8
|
+
- **Default:** `undefined`
|
|
9
9
|
|
|
10
10
|
Uniformly set the server-level routing prefix (often used in the case of shared domain names to distinguish traffic).
|
|
11
11
|
|