@modern-js/main-doc 2.39.0 → 2.39.1
Sign up to get free protection for your applications and to get access to all the features.
- package/docs/en/configure/app/dev/asset-prefix.mdx +0 -4
- package/docs/en/configure/app/dev/before-start-url.mdx +0 -4
- package/docs/en/configure/app/dev/hmr.mdx +0 -4
- package/docs/en/configure/app/dev/host.mdx +0 -4
- package/docs/en/configure/app/dev/https.mdx +0 -4
- package/docs/en/configure/app/dev/port.mdx +0 -4
- package/docs/en/configure/app/dev/progress-bar.mdx +0 -4
- package/docs/en/configure/app/dev/start-url.mdx +0 -4
- package/docs/en/configure/app/experiments/lazy-compilation.mdx +0 -4
- package/docs/en/configure/app/experiments/source-build.mdx +0 -4
- package/docs/en/configure/app/html/app-icon.mdx +0 -4
- package/docs/en/configure/app/html/crossorigin.mdx +0 -4
- package/docs/en/configure/app/html/disable-html-folder.mdx +0 -4
- package/docs/en/configure/app/html/favicon-by-entries.mdx +0 -4
- package/docs/en/configure/app/html/favicon.mdx +0 -4
- package/docs/en/configure/app/html/inject-by-entries.mdx +0 -4
- package/docs/en/configure/app/html/inject.mdx +0 -4
- package/docs/en/configure/app/html/meta-by-entries.mdx +0 -4
- package/docs/en/configure/app/html/meta.mdx +0 -4
- package/docs/en/configure/app/html/mount-id.mdx +0 -4
- package/docs/en/configure/app/html/script-loading.mdx +0 -4
- package/docs/en/configure/app/html/tags-by-entries.mdx +0 -4
- package/docs/en/configure/app/html/tags.mdx +0 -4
- package/docs/en/configure/app/html/template-by-entries.mdx +0 -4
- package/docs/en/configure/app/html/template-parameters-by-entries.mdx +0 -4
- package/docs/en/configure/app/html/template-parameters.mdx +0 -4
- package/docs/en/configure/app/html/template.mdx +0 -4
- package/docs/en/configure/app/html/title-by-entries.mdx +0 -4
- package/docs/en/configure/app/html/title.mdx +0 -4
- package/docs/en/configure/app/output/asset-prefix.mdx +0 -4
- package/docs/en/configure/app/output/assets-retry.mdx +0 -4
- package/docs/en/configure/app/output/charset.mdx +0 -4
- package/docs/en/configure/app/output/clean-dist-path.mdx +0 -4
- package/docs/en/configure/app/output/convert-to-rem.mdx +0 -4
- package/docs/en/configure/app/output/copy.mdx +0 -4
- package/docs/en/configure/app/output/css-module-local-ident-name.mdx +0 -4
- package/docs/en/configure/app/output/css-modules.mdx +0 -4
- package/docs/en/configure/app/output/data-uri-limit.mdx +0 -4
- package/docs/en/configure/app/output/disable-css-extract.mdx +0 -4
- package/docs/en/configure/app/output/disable-css-module-extension.mdx +0 -4
- package/docs/en/configure/app/output/disable-filename-hash.mdx +0 -4
- package/docs/en/configure/app/output/disable-inline-runtime-chunk.mdx +0 -4
- package/docs/en/configure/app/output/disable-minimize.mdx +0 -4
- package/docs/en/configure/app/output/disable-source-map.mdx +0 -4
- package/docs/en/configure/app/output/disable-svgr.mdx +0 -4
- package/docs/en/configure/app/output/disable-ts-checker.mdx +0 -4
- package/docs/en/configure/app/output/dist-path.mdx +0 -4
- package/docs/en/configure/app/output/enable-asset-fallback.mdx +0 -4
- package/docs/en/configure/app/output/enable-asset-manifest.mdx +0 -4
- package/docs/en/configure/app/output/enable-css-module-tsdeclaration.mdx +0 -4
- package/docs/en/configure/app/output/enable-inline-scripts.mdx +0 -4
- package/docs/en/configure/app/output/enable-inline-styles.mdx +0 -4
- package/docs/en/configure/app/output/enable-latest-decorators.mdx +0 -4
- package/docs/en/configure/app/output/externals.mdx +0 -4
- package/docs/en/configure/app/output/filename.mdx +0 -4
- package/docs/en/configure/app/output/legal-comments.mdx +0 -4
- package/docs/en/configure/app/output/override-browserslist.mdx +0 -4
- package/docs/en/configure/app/output/polyfill.mdx +0 -4
- package/docs/en/configure/app/output/svg-default-export.mdx +0 -4
- package/docs/en/configure/app/performance/build-cache.mdx +0 -4
- package/docs/en/configure/app/performance/bundle-analyze.mdx +0 -4
- package/docs/en/configure/app/performance/chunk-split.mdx +0 -4
- package/docs/en/configure/app/performance/dns-prefetch.mdx +0 -4
- package/docs/en/configure/app/performance/preconnect.mdx +0 -4
- package/docs/en/configure/app/performance/prefetch.mdx +0 -4
- package/docs/en/configure/app/performance/preload.mdx +0 -4
- package/docs/en/configure/app/performance/print-file-size.mdx +0 -4
- package/docs/en/configure/app/performance/profile.mdx +0 -4
- package/docs/en/configure/app/performance/remove-console.mdx +0 -4
- package/docs/en/configure/app/performance/remove-moment-locale.mdx +0 -4
- package/docs/en/configure/app/performance/transform-lodash.mdx +0 -4
- package/docs/en/configure/app/security/check-syntax.mdx +0 -4
- package/docs/en/configure/app/security/nonce.mdx +0 -4
- package/docs/en/configure/app/security/sri.mdx +0 -4
- package/docs/en/configure/app/source/alias-strategy.mdx +0 -4
- package/docs/en/configure/app/source/alias.mdx +0 -4
- package/docs/en/configure/app/source/compile-js-data-uri.mdx +0 -4
- package/docs/en/configure/app/source/define.mdx +0 -4
- package/docs/en/configure/app/source/exclude.mdx +0 -4
- package/docs/en/configure/app/source/global-vars.mdx +0 -4
- package/docs/en/configure/app/source/include.mdx +0 -4
- package/docs/en/configure/app/source/module-scopes.mdx +0 -4
- package/docs/en/configure/app/source/pre-entry.mdx +0 -4
- package/docs/en/configure/app/source/resolve-extension-prefix.mdx +0 -4
- package/docs/en/configure/app/source/resolve-main-fields.mdx +0 -4
- package/docs/en/configure/app/source/transform-import.mdx +0 -4
- package/docs/en/configure/app/tools/autoprefixer.mdx +0 -4
- package/docs/en/configure/app/tools/babel.mdx +0 -4
- package/docs/en/configure/app/tools/css-extract.mdx +0 -4
- package/docs/en/configure/app/tools/css-loader.mdx +0 -4
- package/docs/en/configure/app/tools/dev-server.mdx +0 -4
- package/docs/en/configure/app/tools/html-plugin.mdx +0 -4
- package/docs/en/configure/app/tools/inspector.mdx +0 -4
- package/docs/en/configure/app/tools/less.mdx +0 -4
- package/docs/en/configure/app/tools/minify-css.mdx +0 -4
- package/docs/en/configure/app/tools/postcss.mdx +0 -4
- package/docs/en/configure/app/tools/pug.mdx +0 -4
- package/docs/en/configure/app/tools/rspack.mdx +0 -4
- package/docs/en/configure/app/tools/sass.mdx +0 -4
- package/docs/en/configure/app/tools/style-loader.mdx +0 -4
- package/docs/en/configure/app/tools/styled-components.mdx +0 -4
- package/docs/en/configure/app/tools/terser.mdx +0 -4
- package/docs/en/configure/app/tools/ts-checker.mdx +0 -4
- package/docs/en/configure/app/tools/ts-loader.mdx +0 -4
- package/docs/en/configure/app/tools/webpack-chain.mdx +0 -4
- package/docs/en/configure/app/tools/webpack.mdx +0 -4
- package/docs/en/tutorials/first-app/c05-loader.mdx +3 -2
- package/docs/zh/configure/app/dev/asset-prefix.mdx +0 -4
- package/docs/zh/configure/app/dev/before-start-url.mdx +0 -4
- package/docs/zh/configure/app/dev/hmr.mdx +0 -4
- package/docs/zh/configure/app/dev/host.mdx +0 -4
- package/docs/zh/configure/app/dev/https.mdx +0 -4
- package/docs/zh/configure/app/dev/port.mdx +0 -4
- package/docs/zh/configure/app/dev/progress-bar.mdx +0 -4
- package/docs/zh/configure/app/dev/start-url.mdx +0 -4
- package/docs/zh/configure/app/experiments/lazy-compilation.mdx +0 -4
- package/docs/zh/configure/app/experiments/source-build.mdx +0 -4
- package/docs/zh/configure/app/html/app-icon.mdx +0 -4
- package/docs/zh/configure/app/html/crossorigin.mdx +0 -4
- package/docs/zh/configure/app/html/disable-html-folder.mdx +0 -4
- package/docs/zh/configure/app/html/favicon-by-entries.mdx +0 -4
- package/docs/zh/configure/app/html/favicon.mdx +0 -4
- package/docs/zh/configure/app/html/inject-by-entries.mdx +0 -4
- package/docs/zh/configure/app/html/inject.mdx +0 -4
- package/docs/zh/configure/app/html/meta-by-entries.mdx +0 -4
- package/docs/zh/configure/app/html/meta.mdx +0 -4
- package/docs/zh/configure/app/html/mount-id.mdx +0 -4
- package/docs/zh/configure/app/html/script-loading.mdx +0 -4
- package/docs/zh/configure/app/html/tags-by-entries.mdx +0 -4
- package/docs/zh/configure/app/html/tags.mdx +0 -4
- package/docs/zh/configure/app/html/template-by-entries.mdx +0 -4
- package/docs/zh/configure/app/html/template-parameters-by-entries.mdx +0 -4
- package/docs/zh/configure/app/html/template-parameters.mdx +0 -4
- package/docs/zh/configure/app/html/template.mdx +0 -4
- package/docs/zh/configure/app/html/title-by-entries.mdx +0 -4
- package/docs/zh/configure/app/html/title.mdx +0 -4
- package/docs/zh/configure/app/output/asset-prefix.mdx +0 -4
- package/docs/zh/configure/app/output/assets-retry.mdx +0 -4
- package/docs/zh/configure/app/output/charset.mdx +0 -4
- package/docs/zh/configure/app/output/clean-dist-path.mdx +0 -4
- package/docs/zh/configure/app/output/convert-to-rem.mdx +0 -4
- package/docs/zh/configure/app/output/copy.mdx +0 -4
- package/docs/zh/configure/app/output/css-module-local-ident-name.mdx +0 -4
- package/docs/zh/configure/app/output/css-modules.mdx +0 -4
- package/docs/zh/configure/app/output/data-uri-limit.mdx +0 -4
- package/docs/zh/configure/app/output/disable-css-extract.mdx +0 -4
- package/docs/zh/configure/app/output/disable-css-module-extension.mdx +0 -4
- package/docs/zh/configure/app/output/disable-filename-hash.mdx +0 -4
- package/docs/zh/configure/app/output/disable-inline-runtime-chunk.mdx +0 -4
- package/docs/zh/configure/app/output/disable-minimize.mdx +0 -4
- package/docs/zh/configure/app/output/disable-source-map.mdx +0 -4
- package/docs/zh/configure/app/output/disable-svgr.mdx +0 -4
- package/docs/zh/configure/app/output/disable-ts-checker.mdx +0 -4
- package/docs/zh/configure/app/output/dist-path.mdx +0 -4
- package/docs/zh/configure/app/output/enable-asset-fallback.mdx +0 -4
- package/docs/zh/configure/app/output/enable-asset-manifest.mdx +0 -4
- package/docs/zh/configure/app/output/enable-css-module-tsdeclaration.mdx +0 -4
- package/docs/zh/configure/app/output/enable-inline-scripts.mdx +0 -4
- package/docs/zh/configure/app/output/enable-inline-styles.mdx +0 -4
- package/docs/zh/configure/app/output/enable-latest-decorators.mdx +0 -4
- package/docs/zh/configure/app/output/externals.mdx +0 -4
- package/docs/zh/configure/app/output/filename.mdx +0 -4
- package/docs/zh/configure/app/output/legal-comments.mdx +0 -4
- package/docs/zh/configure/app/output/override-browserslist.mdx +0 -4
- package/docs/zh/configure/app/output/polyfill.mdx +0 -4
- package/docs/zh/configure/app/output/svg-default-export.mdx +0 -4
- package/docs/zh/configure/app/performance/build-cache.mdx +0 -4
- package/docs/zh/configure/app/performance/bundle-analyze.mdx +0 -4
- package/docs/zh/configure/app/performance/chunk-split.mdx +0 -4
- package/docs/zh/configure/app/performance/dns-prefetch.mdx +0 -4
- package/docs/zh/configure/app/performance/preconnect.mdx +0 -4
- package/docs/zh/configure/app/performance/prefetch.mdx +0 -4
- package/docs/zh/configure/app/performance/preload.mdx +0 -4
- package/docs/zh/configure/app/performance/print-file-size.mdx +0 -4
- package/docs/zh/configure/app/performance/profile.mdx +0 -4
- package/docs/zh/configure/app/performance/remove-console.mdx +0 -4
- package/docs/zh/configure/app/performance/remove-moment-locale.mdx +0 -4
- package/docs/zh/configure/app/performance/transform-lodash.mdx +0 -4
- package/docs/zh/configure/app/security/check-syntax.mdx +0 -4
- package/docs/zh/configure/app/security/nonce.mdx +0 -4
- package/docs/zh/configure/app/security/sri.mdx +0 -4
- package/docs/zh/configure/app/source/alias-strategy.mdx +0 -4
- package/docs/zh/configure/app/source/alias.mdx +0 -4
- package/docs/zh/configure/app/source/compile-js-data-uri.mdx +0 -4
- package/docs/zh/configure/app/source/define.mdx +0 -4
- package/docs/zh/configure/app/source/exclude.mdx +0 -4
- package/docs/zh/configure/app/source/global-vars.mdx +0 -4
- package/docs/zh/configure/app/source/include.mdx +0 -4
- package/docs/zh/configure/app/source/module-scopes.mdx +0 -4
- package/docs/zh/configure/app/source/pre-entry.mdx +0 -4
- package/docs/zh/configure/app/source/resolve-extension-prefix.mdx +0 -4
- package/docs/zh/configure/app/source/resolve-main-fields.mdx +0 -4
- package/docs/zh/configure/app/source/transform-import.mdx +0 -4
- package/docs/zh/configure/app/tools/autoprefixer.mdx +0 -4
- package/docs/zh/configure/app/tools/babel.mdx +0 -4
- package/docs/zh/configure/app/tools/css-extract.mdx +0 -4
- package/docs/zh/configure/app/tools/css-loader.mdx +0 -4
- package/docs/zh/configure/app/tools/dev-server.mdx +0 -4
- package/docs/zh/configure/app/tools/html-plugin.mdx +0 -4
- package/docs/zh/configure/app/tools/inspector.mdx +0 -4
- package/docs/zh/configure/app/tools/less.mdx +0 -4
- package/docs/zh/configure/app/tools/minify-css.mdx +0 -4
- package/docs/zh/configure/app/tools/postcss.mdx +0 -4
- package/docs/zh/configure/app/tools/pug.mdx +0 -4
- package/docs/zh/configure/app/tools/rspack.mdx +0 -4
- package/docs/zh/configure/app/tools/sass.mdx +0 -4
- package/docs/zh/configure/app/tools/style-loader.mdx +0 -4
- package/docs/zh/configure/app/tools/styled-components.mdx +0 -4
- package/docs/zh/configure/app/tools/terser.mdx +0 -4
- package/docs/zh/configure/app/tools/ts-checker.mdx +0 -4
- package/docs/zh/configure/app/tools/ts-loader.mdx +0 -4
- package/docs/zh/configure/app/tools/webpack-chain.mdx +0 -4
- package/docs/zh/configure/app/tools/webpack.mdx +0 -4
- package/docs/zh/tutorials/first-app/c05-loader.mdx +3 -2
- package/package.json +7 -7
@@ -23,7 +23,7 @@ Create `src/routes/page.data.ts`:
|
|
23
23
|
```tsx
|
24
24
|
import { name, internet } from 'faker';
|
25
25
|
|
26
|
-
type LoaderData = {
|
26
|
+
export type LoaderData = {
|
27
27
|
code: number;
|
28
28
|
data: {
|
29
29
|
name: string;
|
@@ -56,8 +56,9 @@ Data Loader doesn't just work for SSR. In CSR projects, Data Loader can also avo
|
|
56
56
|
|
57
57
|
Modern.js also provides a hooks API called `useLoaderData`, we modify the exported component of `src/routes/page.tsx`:
|
58
58
|
|
59
|
-
```tsx {1,
|
59
|
+
```tsx {1,2,5,13}
|
60
60
|
import { useLoaderData } from '@modern-js/runtime/router';
|
61
|
+
import type { LoaderData } from './page.data';
|
61
62
|
|
62
63
|
function Index() {
|
63
64
|
const { data } = useLoaderData() as LoaderData;
|
@@ -4,10 +4,6 @@ sidebar_label: assetPrefix
|
|
4
4
|
|
5
5
|
# dev.assetPrefix
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [dev.assetPrefix](https://modernjs.dev/builder/api/config-dev.html#devassetprefix)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/dev/assetPrefix.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: beforeStartUrl
|
|
4
4
|
|
5
5
|
# dev.beforeStartUrl
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [dev.beforeStartUrl](https://modernjs.dev/builder/api/config-dev.html#devbeforestarturl)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/dev/beforeStartUrl.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: progressBar
|
|
4
4
|
|
5
5
|
# dev.progressBar
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [dev.progressBar](https://modernjs.dev/builder/api/config-dev.html#devprogressbar)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/dev/progressBar.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: startUrl
|
|
4
4
|
|
5
5
|
# dev.startUrl
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [dev.startUrl](https://modernjs.dev/builder/api/config-dev.html#devstarturl)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/dev/startUrl.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: lazyCompilation
|
|
4
4
|
|
5
5
|
# experiments.lazyCompilation
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [experiments.lazyCompilation](https://modernjs.dev/builder/api/config-experiments.html#experimentslazycompilation)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/experiments/lazyCompilation.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: sourceBuild
|
|
4
4
|
|
5
5
|
# experiments.sourceBuild
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [experiments.sourceBuild](https://modernjs.dev/builder/api/config-experiments.html#experimentssourcebuild)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/experiments/sourceBuild.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: appIcon
|
|
4
4
|
|
5
5
|
# html.appIcon
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [html.appIcon](https://modernjs.dev/builder/api/config-html.html#htmlappicon)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/html/appIcon.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: crossorigin
|
|
4
4
|
|
5
5
|
# html.crossorigin
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [html.crossorigin](https://modernjs.dev/builder/api/config-html.html#htmlcrossorigin)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/html/crossorigin.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: disableHtmlFolder
|
|
4
4
|
|
5
5
|
# html.disableHtmlFolder
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [html.disableHtmlFolder](https://modernjs.dev/builder/api/config-html.html#htmldisablehtmlfolder)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/html/disableHtmlFolder.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: faviconByEntries
|
|
4
4
|
|
5
5
|
# html.faviconByEntries
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [html.faviconByEntries](https://modernjs.dev/builder/api/config-html.html#htmlfaviconbyentries)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/html/faviconByEntries.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: favicon
|
|
4
4
|
|
5
5
|
# html.favicon
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [html.favicon](https://modernjs.dev/builder/api/config-html.html#htmlfavicon)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/html/favicon.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: injectByEntries
|
|
4
4
|
|
5
5
|
# html.injectByEntries
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [html.injectByEntries](https://modernjs.dev/builder/api/config-html.html#htmlinjectbyentries)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/html/injectByEntries.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: inject
|
|
4
4
|
|
5
5
|
# html.inject
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [html.inject](https://modernjs.dev/builder/api/config-html.html#htmlinject)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/html/inject.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: metaByEntries
|
|
4
4
|
|
5
5
|
# html.metaByEntries
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [html.metaByEntries](https://modernjs.dev/builder/api/config-html.html#htmlmetabyentries)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/html/metaByEntries.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: mountId
|
|
4
4
|
|
5
5
|
# html.mountId
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [html.mountId](https://modernjs.dev/builder/api/config-html.html#htmlmountid)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/html/mountId.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: scriptLoading
|
|
4
4
|
|
5
5
|
# html.scriptLoading
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [html.scriptLoading](https://modernjs.dev/builder/api/config-html.html#htmlscriptloading)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/html/scriptLoading.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: tagsByEntries
|
|
4
4
|
|
5
5
|
# html.tagsByEntries
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [html.tagsByEntries](https://modernjs.dev/builder/api/config-html.html#htmltagsbyentries)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/html/tagsByEntries.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: templateByEntries
|
|
4
4
|
|
5
5
|
# html.templateByEntries
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [html.templateByEntries](https://modernjs.dev/builder/api/config-html.html#htmltemplatebyentries)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/html/templateByEntries.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: templateParametersByEntries
|
|
4
4
|
|
5
5
|
# html.templateParametersByEntries
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [html.templateParametersByEntries](https://modernjs.dev/builder/api/config-html.html#htmltemplateparametersbyentries)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/html/templateParametersByEntries.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: templateParameters
|
|
4
4
|
|
5
5
|
# html.templateParameters
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [html.templateParameters](https://modernjs.dev/builder/api/config-html.html#htmltemplateparameters)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/html/templateParameters.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: template
|
|
4
4
|
|
5
5
|
# html.template
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [html.template](https://modernjs.dev/builder/api/config-html.html#htmltemplate)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/html/template.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: titleByEntries
|
|
4
4
|
|
5
5
|
# html.titleByEntries
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [html.titleByEntries](https://modernjs.dev/builder/api/config-html.html#htmltitlebyentries)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/html/titleByEntries.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: assetPrefix
|
|
4
4
|
|
5
5
|
# output.assetPrefix
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [output.assetPrefix](https://modernjs.dev/builder/api/config-output.html#outputassetprefix)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/output/assetPrefix.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: assetsRetry
|
|
4
4
|
|
5
5
|
# output.assetsRetry
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [output.assetsRetry](https://modernjs.dev/builder/api/config-output.html#outputassetsretry)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/output/assetsRetry.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: charset
|
|
4
4
|
|
5
5
|
# output.charset
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [output.charset](https://modernjs.dev/builder/api/config-output.html#outputcharset)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/output/charset.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: cleanDistPath
|
|
4
4
|
|
5
5
|
# output.cleanDistPath
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [output.cleanDistPath](https://modernjs.dev/builder/api/config-output.html#outputcleandistpath)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/output/cleanDistPath.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: convertToRem
|
|
4
4
|
|
5
5
|
# output.convertToRem
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [output.convertToRem](https://modernjs.dev/builder/api/config-output.html#outputconverttorem)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/output/convertToRem.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: copy
|
|
4
4
|
|
5
5
|
# output.copy
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [output.copy](https://modernjs.dev/builder/api/config-output.html#outputcopy)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/output/copy.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: cssModuleLocalIdentName
|
|
4
4
|
|
5
5
|
# output.cssModuleLocalIdentName
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [output.cssModuleLocalIdentName](https://modernjs.dev/builder/api/config-output.html#outputcssmodulelocalidentname)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/output/cssModuleLocalIdentName.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: cssModules
|
|
4
4
|
|
5
5
|
# output.cssModules
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [output.cssModules](https://modernjs.dev/builder/api/config-output.html#outputcssmodules)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/output/cssModules.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: dataUriLimit
|
|
4
4
|
|
5
5
|
# output.dataUriLimit
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [output.dataUriLimit](https://modernjs.dev/builder/api/config-output.html#outputdataurilimit)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/output/dataUriLimit.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: disableCssExtract
|
|
4
4
|
|
5
5
|
# output.disableCssExtract
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [output.disableCssExtract](https://modernjs.dev/builder/api/config-output.html#outputdisablecssextract)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/output/disableCssExtract.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: disableCssModuleExtension
|
|
4
4
|
|
5
5
|
# output.disableCssModuleExtension
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [output.disableCssModuleExtension](https://modernjs.dev/builder/api/config-output.html#outputdisablecssmoduleextension)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/output/disableCssModuleExtension.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: disableFilenameHash
|
|
4
4
|
|
5
5
|
# output.disableFilenameHash
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [output.disableFilenameHash](https://modernjs.dev/builder/api/config-output.html#outputdisablefilenamehash)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/output/disableFilenameHash.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: disableInlineRuntimeChunk
|
|
4
4
|
|
5
5
|
# output.disableInlineRuntimeChunk
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [output.disableInlineRuntimeChunk](https://modernjs.dev/builder/api/config-output.html#outputdisableinlineruntimechunk)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/output/disableInlineRuntimeChunk.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: disableMinimize
|
|
4
4
|
|
5
5
|
# output.disableMinimize
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [output.disableMinimize](https://modernjs.dev/builder/api/config-output.html#outputdisableminimize)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/output/disableMinimize.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: disableSourceMap
|
|
4
4
|
|
5
5
|
# output.disableSourceMap
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [output.disableSourceMap](https://modernjs.dev/builder/api/config-output.html#outputdisablesourcemap)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/output/disableSourceMap.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: disableSvgr
|
|
4
4
|
|
5
5
|
# output.disableSvgr
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [output.disableSvgr](https://modernjs.dev/builder/api/config-output.html#outputdisablesvgr)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/output/disableSvgr.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: disableTsChecker
|
|
4
4
|
|
5
5
|
# output.disableTsChecker
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [output.disableTsChecker](https://modernjs.dev/builder/api/config-output.html#outputdisabletschecker)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/output/disableTsChecker.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: distPath
|
|
4
4
|
|
5
5
|
# output.distPath
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [output.distPath](https://modernjs.dev/builder/api/config-output.html#outputdistpath)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/output/distPath.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: enableAssetFallback
|
|
4
4
|
|
5
5
|
# output.enableAssetFallback
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [output.enableAssetFallback](https://modernjs.dev/builder/api/config-output.html#outputenableassetfallback)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/output/enableAssetFallback.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: enableAssetManifest
|
|
4
4
|
|
5
5
|
# output.enableAssetManifest
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [output.enableAssetManifest](https://modernjs.dev/builder/api/config-output.html#outputenableassetmanifest)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/output/enableAssetManifest.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: enableCssModuleTSDeclaration
|
|
4
4
|
|
5
5
|
# output.enableCssModuleTSDeclaration
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [output.enableCssModuleTSDeclaration](https://modernjs.dev/builder/api/config-output.html#outputenablecssmoduletsdeclaration)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/output/enableCssModuleTSDeclaration.md';
|
12
8
|
|
13
9
|
<Main />
|
@@ -4,10 +4,6 @@ sidebar_label: enableInlineScripts
|
|
4
4
|
|
5
5
|
# output.enableInlineScripts
|
6
6
|
|
7
|
-
:::tip
|
8
|
-
该配置由 Modern.js Builder 提供,更多信息可参考 [output.enableInlineScripts](https://modernjs.dev/builder/api/config-output.html#outputenableinlinescripts)。
|
9
|
-
:::
|
10
|
-
|
11
7
|
import Main from '@modern-js/builder-doc/docs/zh/config/output/enableInlineScripts.md';
|
12
8
|
|
13
9
|
<Main />
|