@modern-js/main-doc 2.4.0 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- 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/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 +1 -1
- package/en/guides/advanced-features/_category_.json +2 -2
- 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 +3 -3
- package/en/guides/advanced-features/testing.mdx +4 -5
- package/en/guides/advanced-features/web-server.mdx +0 -1
- 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 +6 -8
- package/en/guides/{basic-features → concept}/builder.mdx +1 -1
- 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/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/plugin/api/hook/onForged.mdx +1 -1
- package/en/guides/topic-detail/generator/plugin/develop.mdx +1 -1
- 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/micro-runtime-config.mdx +6 -6
- package/zh/components/release-note.mdx +1 -1
- package/zh/configure/app/builder-plugins.mdx +3 -3
- package/zh/configure/app/plugins.mdx +1 -1
- package/zh/configure/app/server/ssr-by-entries.mdx +1 -1
- package/zh/configure/app/tools/rspack.mdx +13 -0
- package/zh/configure/app/usage.mdx +1 -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/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 +15 -10
- 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/plugin/api/input/addInputBefore.mdx +1 -1
- package/zh/guides/topic-detail/micro-frontend/c02-development.mdx +25 -0
- package/zh/guides/topic-detail/micro-frontend/c03-main-app.mdx +15 -15
- 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
@@ -5,7 +5,7 @@ sidebar_label: disableTsChecker
|
|
5
5
|
# output.disableTsChecker
|
6
6
|
|
7
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#outputdisabletschecker)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.disableTsChecker](https://modernjs.dev/builder/en/api/config-output.html#outputdisabletschecker).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/disableTsChecker.md'
|
@@ -5,7 +5,7 @@ sidebar_label: distPath
|
|
5
5
|
# output.distPath
|
6
6
|
|
7
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#outputdistpath)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.distPath](https://modernjs.dev/builder/en/api/config-output.html#outputdistpath).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/distPath.md'
|
@@ -5,7 +5,7 @@ sidebar_label: enableAssetFallback
|
|
5
5
|
# output.enableAssetFallback
|
6
6
|
|
7
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#outputenableassetfallback)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.enableAssetFallback](https://modernjs.dev/builder/en/api/config-output.html#outputenableassetfallback).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/enableAssetFallback.md'
|
@@ -5,7 +5,7 @@ sidebar_label: enableAssetManifest
|
|
5
5
|
# output.enableAssetManifest
|
6
6
|
|
7
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#outputenableassetmanifest)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.enableAssetManifest](https://modernjs.dev/builder/en/api/config-output.html#outputenableassetmanifest).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/enableAssetManifest.md'
|
@@ -5,7 +5,7 @@ sidebar_label: enableCssModuleTSDeclaration
|
|
5
5
|
# output.enableCssModuleTSDeclaration
|
6
6
|
|
7
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#outputenablecssmoduletsdeclaration)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.enableCssModuleTSDeclaration](https://modernjs.dev/builder/en/api/config-output.html#outputenablecssmoduletsdeclaration).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/enableCssModuleTSDeclaration.md'
|
@@ -5,7 +5,7 @@ sidebar_label: enableInlineScripts
|
|
5
5
|
# output.enableInlineScripts
|
6
6
|
|
7
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#outputenableinlinescripts)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.enableInlineScripts](https://modernjs.dev/builder/en/api/config-output.html#outputenableinlinescripts).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/enableInlineScripts.md'
|
@@ -5,7 +5,7 @@ sidebar_label: enableInlineStyles
|
|
5
5
|
# output.enableInlineStyles
|
6
6
|
|
7
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#outputenableinlinestyles)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.enableInlineStyles](https://modernjs.dev/builder/en/api/config-output.html#outputenableinlinestyles).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/enableInlineStyles.md'
|
@@ -5,7 +5,7 @@ sidebar_label: enableLatestDecorators
|
|
5
5
|
# output.enableLatestDecorators
|
6
6
|
|
7
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#outputenablelatestdecorators)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.enableLatestDecorators](https://modernjs.dev/builder/en/api/config-output.html#outputenablelatestdecorators).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/enableLatestDecorators.md'
|
@@ -5,7 +5,7 @@ sidebar_label: externals
|
|
5
5
|
# output.externals
|
6
6
|
|
7
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#outputexternals)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.externals](https://modernjs.dev/builder/en/api/config-output.html#outputexternals).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/externals.md'
|
@@ -5,7 +5,7 @@ sidebar_label: filename
|
|
5
5
|
# output.filename
|
6
6
|
|
7
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#outputfilename)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.filename](https://modernjs.dev/builder/en/api/config-output.html#outputfilename).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/filename.md'
|
@@ -5,7 +5,7 @@ sidebar_label: legalComments
|
|
5
5
|
# output.legalComments
|
6
6
|
|
7
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#outputlegalcomments)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.legalComments](https://modernjs.dev/builder/en/api/config-output.html#outputlegalcomments).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/legalComments.md'
|
@@ -5,7 +5,7 @@ sidebar_label: overrideBrowserslist
|
|
5
5
|
# output.overrideBrowserslist
|
6
6
|
|
7
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#outputoverridebrowserslist)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.overrideBrowserslist](https://modernjs.dev/builder/en/api/config-output.html#outputoverridebrowserslist).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/overrideBrowserslist.md'
|
@@ -5,7 +5,7 @@ sidebar_label: polyfill
|
|
5
5
|
# output.polyfill
|
6
6
|
|
7
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#outputpolyfill)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.polyfill](https://modernjs.dev/builder/en/api/config-output.html#outputpolyfill).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/polyfill.md'
|
@@ -10,7 +10,7 @@ sidebar_label: ssg
|
|
10
10
|
Enable the SSG for **Self-controlled Routing** or **Conventional Routing**.
|
11
11
|
|
12
12
|
:::info
|
13
|
-
For more routes detail, see [routes](/guides/basic-features/routes)
|
13
|
+
For more routes detail, see [routes](/guides/basic-features/routes).
|
14
14
|
|
15
15
|
:::
|
16
16
|
|
@@ -64,7 +64,7 @@ Also using the above configuration, after executing `pnpm run build`, only the e
|
|
64
64
|
例如以下目录结构:
|
65
65
|
|
66
66
|
```bash
|
67
|
-
|
67
|
+
.
|
68
68
|
├── src
|
69
69
|
│ ├── entryA
|
70
70
|
│ │ └── routes
|
@@ -5,7 +5,7 @@ sidebar_label: svgDefaultExport
|
|
5
5
|
# output.svgDefaultExport
|
6
6
|
|
7
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#outputsvgdefaultexport)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [output.svgDefaultExport](https://modernjs.dev/builder/en/api/config-output.html#outputsvgdefaultexport).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/output/svgDefaultExport.md'
|
@@ -5,7 +5,7 @@ sidebar_label: buildCache
|
|
5
5
|
# performance.buildCache
|
6
6
|
|
7
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#performancebuildcache)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [performance.buildCache](https://modernjs.dev/builder/en/api/config-performance.html#performancebuildcache).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/performance/buildCache.md'
|
@@ -5,7 +5,7 @@ sidebar_label: bundleAnalyze
|
|
5
5
|
# performance.bundleAnalyze
|
6
6
|
|
7
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#performancebundleanalyze)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [performance.bundleAnalyze](https://modernjs.dev/builder/en/api/config-performance.html#performancebundleanalyze).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/performance/bundleAnalyze.md'
|
@@ -5,7 +5,7 @@ sidebar_label: chunkSplit
|
|
5
5
|
# performance.chunkSplit
|
6
6
|
|
7
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#performancechunksplit)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [performance.chunkSplit](https://modernjs.dev/builder/en/api/config-performance.html#performancechunksplit).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/performance/chunkSplit.md'
|
@@ -5,7 +5,7 @@ sidebar_label: printFileSize
|
|
5
5
|
# performance.printFileSize
|
6
6
|
|
7
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#performanceprintfilesize)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [performance.printFileSize](https://modernjs.dev/builder/en/api/config-performance.html#performanceprintfilesize).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/performance/printFileSize.md'
|
@@ -5,7 +5,7 @@ sidebar_label: profile
|
|
5
5
|
# performance.profile
|
6
6
|
|
7
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#performanceprofile)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [performance.profile](https://modernjs.dev/builder/en/api/config-performance.html#performanceprofile).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/performance/profile.md'
|
@@ -5,7 +5,7 @@ sidebar_label: removeConsole
|
|
5
5
|
# performance.removeConsole
|
6
6
|
|
7
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#performanceremoveconsole)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [performance.removeConsole](https://modernjs.dev/builder/en/api/config-performance.html#performanceremoveconsole).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/performance/removeConsole.md'
|
@@ -5,7 +5,7 @@ sidebar_label: removeMomentLocale
|
|
5
5
|
# performance.removeMomentLocale
|
6
6
|
|
7
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#performanceremovemomentlocale)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [performance.removeMomentLocale](https://modernjs.dev/builder/en/api/config-performance.html#performanceremovemomentlocale).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/performance/removeMomentLocale.md'
|
@@ -15,7 +15,7 @@ For the way to write custom plugins, please refer to [How to Write Plugins](/gui
|
|
15
15
|
|
16
16
|
This config **is used to configure the Modern.js framework plugin**. If you need to configure other types of plugins, please select the corresponding configs:
|
17
17
|
|
18
|
-
- Use [builderPlugins](
|
18
|
+
- Use [builderPlugins](/configure/app/builder-plugins) to configure Modern.js Builder 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
|
|
@@ -63,7 +63,7 @@ Runtime plugin runtime configuration and configuration directly in `modern.confi
|
|
63
63
|
:::
|
64
64
|
|
65
65
|
:::warning
|
66
|
-
defineConfig
|
66
|
+
defineConfig can only define the specific configuration content of the Runtime plugin. To confirm whether to enable the plugin, it needs to be determined through the configuration in `modernConfig` in `package.json` or `modern.config.ts`.
|
67
67
|
|
68
68
|
:::
|
69
69
|
|
@@ -71,7 +71,7 @@ defineConfig 中只能定义 Runtime 插件的具体配置内容,确认是否
|
|
71
71
|
|
72
72
|
- **Type:** `Object`
|
73
73
|
|
74
|
-
####
|
74
|
+
#### Introduction
|
75
75
|
|
76
76
|
Add the runtime configuration according to the entry. The option attribute is consistent with the runtime. The specified value will be replaced and merged with the content of the runtime attribute.
|
77
77
|
|
@@ -5,7 +5,7 @@ sidebar_label: checkSyntax
|
|
5
5
|
# security.checkSyntax
|
6
6
|
|
7
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#securitychecksyntax)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [security.checkSyntax](https://modernjs.dev/builder/en/api/config-security.html#securitychecksyntax).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/security/checkSyntax.md'
|
@@ -5,7 +5,7 @@ sidebar_label: sri
|
|
5
5
|
# security.sri
|
6
6
|
|
7
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#securitysri)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [security.sri](https://modernjs.dev/builder/en/api/config-security.html#securitysri).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/security/sri.md'
|
@@ -12,11 +12,11 @@ Uniformly set the server-level routing prefix (often used in the case of shared
|
|
12
12
|
```ts title="modern.config.ts"
|
13
13
|
export default defineConfig({
|
14
14
|
server: {
|
15
|
-
//
|
16
|
-
//
|
15
|
+
// All generated routes are automatically prefixed with `/base`
|
16
|
+
// Path to the generated server-side route file: dist/route.json
|
17
17
|
baseUrl: '/base'
|
18
18
|
|
19
|
-
//
|
19
|
+
// Multiple baseUrl
|
20
20
|
baseUrl: ['/base-new', '/base-old']
|
21
21
|
}
|
22
22
|
})
|
@@ -7,7 +7,7 @@ sidebar_label: enableFrameworkExt
|
|
7
7
|
- **Type:** `boolean`
|
8
8
|
- **Default:** `false`
|
9
9
|
|
10
|
-
By default, with
|
10
|
+
By default, with [Custom Web Server](/guides/advanced-features/web-server) enabled, Middleware uses the syntax of the Modern.js itself.
|
11
11
|
|
12
12
|
Enable `server.enableFrameworkExt` to use the syntax of framework extensions.
|
13
13
|
|
@@ -7,7 +7,7 @@ sidebar_label: ssrByEntries
|
|
7
7
|
- **Type:** `Object`
|
8
8
|
- **Default:** `undefined`
|
9
9
|
|
10
|
-
Set the ssr option according to the entry. The attributes in the option are the same as [ssr](./ssr.
|
10
|
+
Set the ssr option according to the entry. The attributes in the option are the same as [ssr](./ssr.mdx). The specified value will be replaced and merged with the content of the ssr attribute. For example:
|
11
11
|
|
12
12
|
:::info
|
13
13
|
The "entry name" defaults to the directory name. In a few cases, when the entry is customized by `source.entries`, the entry name `source.entries` the `key` of the object.
|
@@ -5,7 +5,7 @@ sidebar_label: alias
|
|
5
5
|
# source.alias
|
6
6
|
|
7
7
|
:::tip
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [source.alias](https://modernjs.dev/builder/en/api/config-source.html#sourcealias)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [source.alias](https://modernjs.dev/builder/en/api/config-source.html#sourcealias).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/source/alias.md'
|
@@ -5,7 +5,7 @@ sidebar_label: compileJsDataURI
|
|
5
5
|
# source.compileJsDataURI
|
6
6
|
|
7
7
|
:::tip
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [source.compileJsDataURI](https://modernjs.dev/builder/en/api/config-source.html#sourcecompilejsdatauri)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [source.compileJsDataURI](https://modernjs.dev/builder/en/api/config-source.html#sourcecompilejsdatauri).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/source/compileJsDataURI.md'
|
@@ -5,7 +5,7 @@ sidebar_label: define
|
|
5
5
|
# source.define
|
6
6
|
|
7
7
|
:::tip
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [source.define](https://modernjs.dev/builder/en/api/config-source.html#sourcedefine)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [source.define](https://modernjs.dev/builder/en/api/config-source.html#sourcedefine).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/source/define.md'
|
@@ -5,7 +5,7 @@ sidebar_label: designSystem
|
|
5
5
|
# designSystem
|
6
6
|
|
7
7
|
- **Type:** `Object`
|
8
|
-
- **Default:** See configuration details below
|
8
|
+
- **Default:** See configuration details below.
|
9
9
|
|
10
10
|
:::caution Caution
|
11
11
|
You need to enable the Tailwind CSS feature through `pnpm run new` first.
|
@@ -645,8 +645,8 @@ const designSystem = {
|
|
645
645
|
};
|
646
646
|
```
|
647
647
|
|
648
|
-
:::tip
|
649
|
-
More about:<a href="https://tailwindcss.com/docs/configuration#theme" target="_blank">TailwindCSS configuration</a
|
648
|
+
:::tip
|
649
|
+
More about:<a href="https://tailwindcss.com/docs/configuration#theme" target="_blank">TailwindCSS configuration</a>.
|
650
650
|
|
651
651
|
:::
|
652
652
|
|
@@ -884,7 +884,7 @@ const designSystem = {
|
|
884
884
|
|
885
885
|
By default, these colors are inherited by the `backgroundColor`, `textColor`, and `borderColor` core plugins.
|
886
886
|
|
887
|
-
o learn more, see: [Customizing Colors](https://tailwindcss.com/docs/customizing-colors)
|
887
|
+
o learn more, see: [Customizing Colors](https://tailwindcss.com/docs/customizing-colors).
|
888
888
|
|
889
889
|
#### Spacing
|
890
890
|
|
@@ -918,7 +918,7 @@ const designSystem = {
|
|
918
918
|
|
919
919
|
By default, these values are inherited by the `padding`, `margin`, `negativeMargin`, `width`, and `height` core plugins.
|
920
920
|
|
921
|
-
To learn more, see: [Customizing Spacing](https://tailwindcss.com/docs/customizing-spacing)
|
921
|
+
To learn more, see: [Customizing Spacing](https://tailwindcss.com/docs/customizing-spacing).
|
922
922
|
|
923
923
|
#### Core plugins
|
924
924
|
|
@@ -7,7 +7,7 @@ sidebar_label: entries
|
|
7
7
|
- **Type:** `Object = { [ entryName: string ]: string | Object }`
|
8
8
|
- **Default:** Default entry object dynamically settled according to the current project directory structure.
|
9
9
|
|
10
|
-
For most scenarios, Modern.js automatically generated entries according to the directory structure can meet most business requirements. For details, please refer to [Entries](/guides/concept/entries)
|
10
|
+
For most scenarios, Modern.js automatically generated entries according to the directory structure can meet most business requirements. For details, please refer to [Entries](/guides/concept/entries).
|
11
11
|
|
12
12
|
If you need to customize the build entry, you can specify it with this option.
|
13
13
|
|
@@ -60,8 +60,8 @@ export default defineConfig({
|
|
60
60
|
|
61
61
|
When the value is `Object`, the following properties can be configured:
|
62
62
|
|
63
|
-
- `entry`:`string`,entry file path
|
64
|
-
- `disableMount`:`boolean = false`,turn off Modern.js generate entry code
|
63
|
+
- `entry`:`string`,entry file path.
|
64
|
+
- `disableMount`:`boolean = false`,turn off Modern.js generate entry code.
|
65
65
|
|
66
66
|
```ts title="modern.config.ts"
|
67
67
|
import { defineConfig } from '@modern-js/app-tools';
|
@@ -5,7 +5,7 @@ sidebar_label: exclude
|
|
5
5
|
# source.exclude
|
6
6
|
|
7
7
|
:::tip
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [source.exclude](https://modernjs.dev/builder/en/api/config-source.html#sourceexclude)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [source.exclude](https://modernjs.dev/builder/en/api/config-source.html#sourceexclude).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/source/exclude.md'
|
@@ -5,7 +5,7 @@ sidebar_label: globalVars
|
|
5
5
|
# source.globalVars
|
6
6
|
|
7
7
|
:::tip
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [source.globalVars](https://modernjs.dev/builder/en/api/config-source.html#sourceglobalvars)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [source.globalVars](https://modernjs.dev/builder/en/api/config-source.html#sourceglobalvars).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/source/globalVars.md'
|
@@ -5,7 +5,7 @@ sidebar_label: include
|
|
5
5
|
# source.include
|
6
6
|
|
7
7
|
:::tip
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [source.include](https://modernjs.dev/builder/en/api/config-source.html#sourceinclude)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [source.include](https://modernjs.dev/builder/en/api/config-source.html#sourceinclude).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/source/include.md'
|
@@ -5,7 +5,7 @@ sidebar_label: moduleScopes
|
|
5
5
|
# source.moduleScopes
|
6
6
|
|
7
7
|
:::tip
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [source.moduleScopes](https://modernjs.dev/builder/en/api/config-source.html#sourcemodulescopes)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [source.moduleScopes](https://modernjs.dev/builder/en/api/config-source.html#sourcemodulescopes).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/source/moduleScopes.md'
|
@@ -5,7 +5,7 @@ sidebar_label: preEntry
|
|
5
5
|
# source.preEntry
|
6
6
|
|
7
7
|
:::tip
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [source.preEntry](https://modernjs.dev/builder/en/api/config-source.html#sourcepreentry)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [source.preEntry](https://modernjs.dev/builder/en/api/config-source.html#sourcepreentry).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/source/preEntry.md'
|
@@ -5,7 +5,7 @@ sidebar_label: resolveExtensionPrefix
|
|
5
5
|
# source.resolveExtensionPrefix
|
6
6
|
|
7
7
|
:::tip
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [source.resolveExtensionPrefix](https://modernjs.dev/builder/en/api/config-source.html#sourceresolveextensionprefix)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [source.resolveExtensionPrefix](https://modernjs.dev/builder/en/api/config-source.html#sourceresolveextensionprefix).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/source/resolveExtensionPrefix.md'
|
@@ -5,7 +5,7 @@ sidebar_label: resolveMainFields
|
|
5
5
|
# source.resolveMainFields
|
6
6
|
|
7
7
|
:::tip
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [source.resolveMainFields](https://modernjs.dev/builder/en/api/config-source.html#sourceresolvemainfields)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [source.resolveMainFields](https://modernjs.dev/builder/en/api/config-source.html#sourceresolvemainfields).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/source/resolveMainFields.md'
|
@@ -5,7 +5,7 @@ sidebar_label: autoprefixer
|
|
5
5
|
# tools.autoprefixer
|
6
6
|
|
7
7
|
:::tip
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [tools.autoprefixer](https://modernjs.dev/builder/en/api/config-tools.html#toolsautoprefixer)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [tools.autoprefixer](https://modernjs.dev/builder/en/api/config-tools.html#toolsautoprefixer).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/tools/autoprefixer.md'
|
@@ -5,7 +5,7 @@ sidebar_label: babel
|
|
5
5
|
# tools.babel
|
6
6
|
|
7
7
|
:::tip
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [tools.babel](https://modernjs.dev/builder/en/api/config-tools.html#toolsbabel)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [tools.babel](https://modernjs.dev/builder/en/api/config-tools.html#toolsbabel).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/tools/babel.md'
|
@@ -5,7 +5,7 @@ sidebar_label: cssExtract
|
|
5
5
|
# tools.cssExtract
|
6
6
|
|
7
7
|
:::tip
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [tools.cssExtract](https://modernjs.dev/builder/en/api/config-tools.html#toolscssextract)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [tools.cssExtract](https://modernjs.dev/builder/en/api/config-tools.html#toolscssextract).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/tools/cssExtract.md'
|
@@ -5,7 +5,7 @@ sidebar_label: cssLoader
|
|
5
5
|
# tools.cssLoader
|
6
6
|
|
7
7
|
:::tip
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [tools.cssLoader](https://modernjs.dev/builder/en/api/config-tools.html#toolscssloader)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [tools.cssLoader](https://modernjs.dev/builder/en/api/config-tools.html#toolscssloader).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/tools/cssLoader.md'
|
@@ -5,7 +5,7 @@ sidebar_label: devServer
|
|
5
5
|
# tools.devServer
|
6
6
|
|
7
7
|
:::tip
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [tools.devServer](https://modernjs.dev/builder/en/api/config-tools.html#toolsdevserver)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [tools.devServer](https://modernjs.dev/builder/en/api/config-tools.html#toolsdevserver).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/tools/devServer.md'
|
@@ -5,7 +5,7 @@ sidebar_label: htmlPlugin
|
|
5
5
|
# tools.htmlPlugin
|
6
6
|
|
7
7
|
:::tip
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [tools.htmlPlugin](https://modernjs.dev/builder/en/api/config-tools.html#toolshtmlplugin)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [tools.htmlPlugin](https://modernjs.dev/builder/en/api/config-tools.html#toolshtmlplugin).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/tools/htmlPlugin.md'
|
@@ -5,7 +5,7 @@ sidebar_label: inspector
|
|
5
5
|
# tools.inspector
|
6
6
|
|
7
7
|
:::tip
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [tools.inspector](https://modernjs.dev/builder/en/api/config-tools.html#toolsinspector)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [tools.inspector](https://modernjs.dev/builder/en/api/config-tools.html#toolsinspector).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/tools/inspector.md'
|
@@ -5,7 +5,7 @@ sidebar_label: less
|
|
5
5
|
# tools.less
|
6
6
|
|
7
7
|
:::tip
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [tools.less](https://modernjs.dev/builder/en/api/config-tools.html#toolsless)
|
8
|
+
This config is provided by Modern.js Builder, more detail can see [tools.less](https://modernjs.dev/builder/en/api/config-tools.html#toolsless).
|
9
9
|
:::
|
10
10
|
|
11
11
|
import Main from '@modern-js/builder-doc/docs/en/config/tools/less.md'
|