@modern-js/main-doc 0.0.0-next-1678939088213 → 0.0.0-next-1679037277335
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/CHANGELOG.md +14 -3
- package/docs/en/blog/index.md +8 -0
- package/docs/en/guides/get-started/introduction.mdx +1 -1
- package/docs/en/guides/topic-detail/framework-plugin/plugin-api.mdx +29 -28
- package/docs/zh/blog/index.md +71 -3
- package/docs/zh/blog/updates/2022-0708-updates.md +96 -0
- package/docs/zh/blog/updates/2022-0910-updates.md +80 -0
- package/docs/zh/blog/updates/_category_.json +5 -0
- package/docs/zh/blog/updates/v2-release-note.mdx +250 -0
- package/docs/zh/guides/advanced-features/eslint.mdx +1 -1
- package/docs/zh/guides/topic-detail/framework-plugin/plugin-api.mdx +30 -29
- package/modern.config.ts +5 -6
- package/package.json +5 -5
- package/src/pages/index.tsx +10 -5
- package/en/configure/app/dev/asset-prefix.mdx +0 -13
- package/en/configure/app/dev/before-start-url.mdx +0 -13
- package/en/configure/app/dev/hmr.mdx +0 -13
- package/en/configure/app/dev/host.mdx +0 -13
- package/en/configure/app/dev/https.mdx +0 -13
- package/en/configure/app/dev/port.mdx +0 -13
- package/en/configure/app/dev/progress-bar.mdx +0 -13
- package/en/configure/app/dev/start-url.mdx +0 -13
- package/en/configure/app/experiments/lazy-compilation.mdx +0 -13
- package/en/configure/app/html/app-icon.mdx +0 -13
- package/en/configure/app/html/crossorigin.mdx +0 -13
- package/en/configure/app/html/disable-html-folder.mdx +0 -13
- package/en/configure/app/html/favicon-by-entries.mdx +0 -13
- package/en/configure/app/html/favicon.mdx +0 -13
- package/en/configure/app/html/inject-by-entries.mdx +0 -13
- package/en/configure/app/html/inject.mdx +0 -13
- package/en/configure/app/html/meta-by-entries.mdx +0 -13
- package/en/configure/app/html/meta.mdx +0 -13
- package/en/configure/app/html/mount-id.mdx +0 -13
- package/en/configure/app/html/tags-by-entries.mdx +0 -13
- package/en/configure/app/html/tags.mdx +0 -13
- package/en/configure/app/html/template-by-entries.mdx +0 -13
- package/en/configure/app/html/template-parameters-by-entries.mdx +0 -13
- package/en/configure/app/html/template-parameters.mdx +0 -13
- package/en/configure/app/html/template.mdx +0 -13
- package/en/configure/app/html/title-by-entries.mdx +0 -13
- package/en/configure/app/html/title.mdx +0 -13
- package/en/configure/app/output/asset-prefix.mdx +0 -13
- package/en/configure/app/output/assets-retry.mdx +0 -13
- package/en/configure/app/output/charset.mdx +0 -13
- package/en/configure/app/output/clean-dist-path.mdx +0 -13
- package/en/configure/app/output/convert-to-rem.mdx +0 -13
- package/en/configure/app/output/copy.mdx +0 -13
- package/en/configure/app/output/css-module-local-ident-name.mdx +0 -13
- package/en/configure/app/output/data-uri-limit.mdx +0 -13
- package/en/configure/app/output/disable-css-extract.mdx +0 -13
- package/en/configure/app/output/disable-css-module-extension.mdx +0 -13
- package/en/configure/app/output/disable-filename-hash.mdx +0 -13
- package/en/configure/app/output/disable-inline-runtime-chunk.mdx +0 -13
- package/en/configure/app/output/disable-minimize.mdx +0 -13
- package/en/configure/app/output/disable-source-map.mdx +0 -13
- package/en/configure/app/output/disable-ts-checker.mdx +0 -13
- package/en/configure/app/output/dist-path.mdx +0 -13
- package/en/configure/app/output/enable-asset-fallback.mdx +0 -13
- package/en/configure/app/output/enable-asset-manifest.mdx +0 -13
- package/en/configure/app/output/enable-css-module-tsdeclaration.mdx +0 -13
- package/en/configure/app/output/enable-inline-scripts.mdx +0 -13
- package/en/configure/app/output/enable-inline-styles.mdx +0 -13
- package/en/configure/app/output/enable-latest-decorators.mdx +0 -13
- package/en/configure/app/output/externals.mdx +0 -13
- package/en/configure/app/output/filename.mdx +0 -13
- package/en/configure/app/output/legal-comments.mdx +0 -13
- package/en/configure/app/output/override-browserslist.mdx +0 -13
- package/en/configure/app/output/polyfill.mdx +0 -13
- package/en/configure/app/output/svg-default-export.mdx +0 -13
- package/en/configure/app/performance/build-cache.mdx +0 -13
- package/en/configure/app/performance/bundle-analyze.mdx +0 -13
- package/en/configure/app/performance/chunk-split.mdx +0 -13
- package/en/configure/app/performance/print-file-size.mdx +0 -13
- package/en/configure/app/performance/profile.mdx +0 -13
- package/en/configure/app/performance/remove-console.mdx +0 -13
- package/en/configure/app/performance/remove-moment-locale.mdx +0 -13
- package/en/configure/app/security/check-syntax.mdx +0 -13
- package/en/configure/app/security/sri.mdx +0 -13
- package/en/configure/app/source/alias.mdx +0 -13
- package/en/configure/app/source/compile-js-data-uri.mdx +0 -13
- package/en/configure/app/source/define.mdx +0 -13
- package/en/configure/app/source/exclude.mdx +0 -13
- package/en/configure/app/source/global-vars.mdx +0 -13
- package/en/configure/app/source/include.mdx +0 -13
- package/en/configure/app/source/module-scopes.mdx +0 -13
- package/en/configure/app/source/pre-entry.mdx +0 -13
- package/en/configure/app/source/resolve-extension-prefix.mdx +0 -13
- package/en/configure/app/source/resolve-main-fields.mdx +0 -13
- package/en/configure/app/tools/autoprefixer.mdx +0 -13
- package/en/configure/app/tools/babel.mdx +0 -13
- package/en/configure/app/tools/css-extract.mdx +0 -13
- package/en/configure/app/tools/css-loader.mdx +0 -13
- package/en/configure/app/tools/dev-server.mdx +0 -13
- package/en/configure/app/tools/html-plugin.mdx +0 -13
- package/en/configure/app/tools/inspector.mdx +0 -13
- package/en/configure/app/tools/less.mdx +0 -13
- package/en/configure/app/tools/minify-css.mdx +0 -13
- package/en/configure/app/tools/postcss.mdx +0 -13
- package/en/configure/app/tools/pug.mdx +0 -13
- package/en/configure/app/tools/rspack.mdx +0 -13
- package/en/configure/app/tools/sass.mdx +0 -13
- package/en/configure/app/tools/style-loader.mdx +0 -13
- package/en/configure/app/tools/styled-components.mdx +0 -13
- package/en/configure/app/tools/terser.mdx +0 -13
- package/en/configure/app/tools/ts-checker.mdx +0 -13
- package/en/configure/app/tools/ts-loader.mdx +0 -13
- package/en/configure/app/tools/webpack-chain.mdx +0 -13
- package/en/configure/app/tools/webpack.mdx +0 -13
- package/zh/configure/app/dev/asset-prefix.mdx +0 -13
- package/zh/configure/app/dev/before-start-url.mdx +0 -13
- package/zh/configure/app/dev/hmr.mdx +0 -13
- package/zh/configure/app/dev/host.mdx +0 -13
- package/zh/configure/app/dev/https.mdx +0 -13
- package/zh/configure/app/dev/port.mdx +0 -13
- package/zh/configure/app/dev/progress-bar.mdx +0 -13
- package/zh/configure/app/dev/start-url.mdx +0 -13
- package/zh/configure/app/experiments/lazy-compilation.mdx +0 -13
- package/zh/configure/app/html/app-icon.mdx +0 -13
- package/zh/configure/app/html/crossorigin.mdx +0 -13
- package/zh/configure/app/html/disable-html-folder.mdx +0 -13
- package/zh/configure/app/html/favicon-by-entries.mdx +0 -13
- package/zh/configure/app/html/favicon.mdx +0 -13
- package/zh/configure/app/html/inject-by-entries.mdx +0 -13
- package/zh/configure/app/html/inject.mdx +0 -13
- package/zh/configure/app/html/meta-by-entries.mdx +0 -13
- package/zh/configure/app/html/meta.mdx +0 -13
- package/zh/configure/app/html/mount-id.mdx +0 -13
- package/zh/configure/app/html/tags-by-entries.mdx +0 -13
- package/zh/configure/app/html/tags.mdx +0 -13
- package/zh/configure/app/html/template-by-entries.mdx +0 -13
- package/zh/configure/app/html/template-parameters-by-entries.mdx +0 -13
- package/zh/configure/app/html/template-parameters.mdx +0 -13
- package/zh/configure/app/html/template.mdx +0 -13
- package/zh/configure/app/html/title-by-entries.mdx +0 -13
- package/zh/configure/app/html/title.mdx +0 -13
- package/zh/configure/app/output/asset-prefix.mdx +0 -13
- package/zh/configure/app/output/assets-retry.mdx +0 -13
- package/zh/configure/app/output/charset.mdx +0 -13
- package/zh/configure/app/output/clean-dist-path.mdx +0 -13
- package/zh/configure/app/output/convert-to-rem.mdx +0 -13
- package/zh/configure/app/output/copy.mdx +0 -13
- package/zh/configure/app/output/css-module-local-ident-name.mdx +0 -13
- package/zh/configure/app/output/data-uri-limit.mdx +0 -13
- package/zh/configure/app/output/disable-css-extract.mdx +0 -13
- package/zh/configure/app/output/disable-css-module-extension.mdx +0 -13
- package/zh/configure/app/output/disable-filename-hash.mdx +0 -13
- package/zh/configure/app/output/disable-inline-runtime-chunk.mdx +0 -13
- package/zh/configure/app/output/disable-minimize.mdx +0 -13
- package/zh/configure/app/output/disable-source-map.mdx +0 -13
- package/zh/configure/app/output/disable-ts-checker.mdx +0 -13
- package/zh/configure/app/output/dist-path.mdx +0 -13
- package/zh/configure/app/output/enable-asset-fallback.mdx +0 -13
- package/zh/configure/app/output/enable-asset-manifest.mdx +0 -13
- package/zh/configure/app/output/enable-css-module-tsdeclaration.mdx +0 -13
- package/zh/configure/app/output/enable-inline-scripts.mdx +0 -13
- package/zh/configure/app/output/enable-inline-styles.mdx +0 -13
- package/zh/configure/app/output/enable-latest-decorators.mdx +0 -13
- package/zh/configure/app/output/externals.mdx +0 -13
- package/zh/configure/app/output/filename.mdx +0 -13
- package/zh/configure/app/output/legal-comments.mdx +0 -13
- package/zh/configure/app/output/override-browserslist.mdx +0 -13
- package/zh/configure/app/output/polyfill.mdx +0 -13
- package/zh/configure/app/output/svg-default-export.mdx +0 -13
- package/zh/configure/app/performance/build-cache.mdx +0 -13
- package/zh/configure/app/performance/bundle-analyze.mdx +0 -13
- package/zh/configure/app/performance/chunk-split.mdx +0 -13
- package/zh/configure/app/performance/print-file-size.mdx +0 -13
- package/zh/configure/app/performance/profile.mdx +0 -13
- package/zh/configure/app/performance/remove-console.mdx +0 -13
- package/zh/configure/app/performance/remove-moment-locale.mdx +0 -13
- package/zh/configure/app/security/check-syntax.mdx +0 -13
- package/zh/configure/app/security/sri.mdx +0 -13
- package/zh/configure/app/source/alias.mdx +0 -13
- package/zh/configure/app/source/compile-js-data-uri.mdx +0 -13
- package/zh/configure/app/source/define.mdx +0 -13
- package/zh/configure/app/source/exclude.mdx +0 -13
- package/zh/configure/app/source/global-vars.mdx +0 -13
- package/zh/configure/app/source/include.mdx +0 -13
- package/zh/configure/app/source/module-scopes.mdx +0 -13
- package/zh/configure/app/source/pre-entry.mdx +0 -13
- package/zh/configure/app/source/resolve-extension-prefix.mdx +0 -13
- package/zh/configure/app/source/resolve-main-fields.mdx +0 -13
- package/zh/configure/app/tools/autoprefixer.mdx +0 -13
- package/zh/configure/app/tools/babel.mdx +0 -13
- package/zh/configure/app/tools/css-extract.mdx +0 -13
- package/zh/configure/app/tools/css-loader.mdx +0 -13
- package/zh/configure/app/tools/dev-server.mdx +0 -13
- package/zh/configure/app/tools/html-plugin.mdx +0 -13
- package/zh/configure/app/tools/inspector.mdx +0 -13
- package/zh/configure/app/tools/less.mdx +0 -13
- package/zh/configure/app/tools/minify-css.mdx +0 -13
- package/zh/configure/app/tools/postcss.mdx +0 -13
- package/zh/configure/app/tools/pug.mdx +0 -13
- package/zh/configure/app/tools/rspack.mdx +0 -13
- package/zh/configure/app/tools/sass.mdx +0 -13
- package/zh/configure/app/tools/style-loader.mdx +0 -13
- package/zh/configure/app/tools/styled-components.mdx +0 -13
- package/zh/configure/app/tools/terser.mdx +0 -13
- package/zh/configure/app/tools/ts-checker.mdx +0 -13
- package/zh/configure/app/tools/ts-loader.mdx +0 -13
- package/zh/configure/app/tools/webpack-chain.mdx +0 -13
- package/zh/configure/app/tools/webpack.mdx +0 -13
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
title: 插件 API
|
|
3
3
|
sidebar_position: 6
|
|
4
4
|
---
|
|
5
|
+
|
|
5
6
|
# 插件 API
|
|
6
7
|
|
|
7
8
|
插件的 `setup` 函数会接收一个 `api` 入参,你可以调用 api 上提供的一些方法来获取到配置、应用上下文等信息。
|
|
@@ -36,16 +37,39 @@ interface UserConfig {
|
|
|
36
37
|
source?: SourceConfig;
|
|
37
38
|
output?: OutputConfig;
|
|
38
39
|
server?: ServerConfig;
|
|
39
|
-
dev?: DevConfig;
|
|
40
40
|
deploy?: DeployConfig;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
// ...other fields
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
具体配置字段的意义请参考 [配置](/configure/app/usage)。
|
|
46
|
+
|
|
47
|
+
:::tip
|
|
48
|
+
该方法获取到的是只读配置,不可修改。如果需要修改配置,请使用 [config hook](/guides/topic-detail/framework-plugin/hook-list.html#config)。
|
|
49
|
+
:::
|
|
50
|
+
|
|
51
|
+
### useResolvedConfigContext
|
|
52
|
+
|
|
53
|
+
用于获取被解析、合并之后的最终配置。
|
|
54
|
+
|
|
55
|
+
```ts
|
|
56
|
+
const useResolvedConfigContext: () => NormalizedConfig;
|
|
57
|
+
|
|
58
|
+
interface NormalizedConfig {
|
|
59
|
+
source: NormalizedSourceConfig;
|
|
60
|
+
output: NormalizedOutputConfig;
|
|
61
|
+
server: NormalizedServerConfig;
|
|
62
|
+
deploy: NormalizedDeployConfig;
|
|
63
|
+
_raw: UserConfig; // 原始配置对象
|
|
64
|
+
// ...other fields
|
|
45
65
|
}
|
|
46
66
|
```
|
|
47
67
|
|
|
48
|
-
|
|
68
|
+
配置字段的完整内容请参考 [配置](/configure/app/usage)。
|
|
69
|
+
|
|
70
|
+
:::tip
|
|
71
|
+
该方法获取到的是只读配置,不可修改。如果需要修改配置,请使用 [config hook](/guides/topic-detail/framework-plugin/hook-list.html#config)。
|
|
72
|
+
:::
|
|
49
73
|
|
|
50
74
|
### useAppContext
|
|
51
75
|
|
|
@@ -75,29 +99,6 @@ interface IAppContext {
|
|
|
75
99
|
}
|
|
76
100
|
```
|
|
77
101
|
|
|
78
|
-
### useResolvedConfigContext
|
|
79
|
-
|
|
80
|
-
用于获取解析之后的最终配置。
|
|
81
|
-
|
|
82
|
-
```ts
|
|
83
|
-
const useResolvedConfigContext: () => NormalizedConfig;
|
|
84
|
-
|
|
85
|
-
interface NormalizedConfig {
|
|
86
|
-
source: NormalizedSourceConfig;
|
|
87
|
-
output: OutputConfig;
|
|
88
|
-
server: ServerConfig;
|
|
89
|
-
dev: DevConfig;
|
|
90
|
-
deploy: DeployConfig;
|
|
91
|
-
tools: NormalizedToolsConfig;
|
|
92
|
-
plugins: PluginConfig;
|
|
93
|
-
runtime: RuntimeConfig;
|
|
94
|
-
runtimeByEntries?: RuntimeByEntriesConfig;
|
|
95
|
-
_raw: UserConfig;
|
|
96
|
-
}
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
具体配置字段的意义请参考【[配置](/configure/app/usage)】。
|
|
100
|
-
|
|
101
102
|
### useHookRunners
|
|
102
103
|
|
|
103
104
|
用于获取 Hooks 的执行器,并触发特定的 Hook 执行。
|
package/modern.config.ts
CHANGED
|
@@ -40,12 +40,11 @@ const getNavbar = (lang: string): NavItem[] => {
|
|
|
40
40
|
link: getLink('/apis/app/commands'),
|
|
41
41
|
activeMatch: '/apis/',
|
|
42
42
|
},
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
// },
|
|
43
|
+
{
|
|
44
|
+
text: getText('博客', 'Blog'),
|
|
45
|
+
link: getLink('/blog/index'),
|
|
46
|
+
activeMatch: '/blog/',
|
|
47
|
+
},
|
|
49
48
|
{
|
|
50
49
|
text: `v${version}`,
|
|
51
50
|
items: [
|
package/package.json
CHANGED
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "0.0.0-next-
|
|
14
|
+
"version": "0.0.0-next-1679037277335",
|
|
15
15
|
"publishConfig": {
|
|
16
16
|
"registry": "https://registry.npmjs.org/",
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@modern-js/builder-doc": "0.0.0-next-
|
|
20
|
+
"@modern-js/builder-doc": "0.0.0-next-1679037277335"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"classnames": "^2",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"fs-extra": "^10",
|
|
30
30
|
"@types/node": "^16",
|
|
31
31
|
"@types/fs-extra": "^9",
|
|
32
|
-
"@modern-js/builder-doc": "0.0.0-next-
|
|
33
|
-
"@modern-js/doc-tools": "0.0.0-next-
|
|
34
|
-
"@modern-js/doc-plugin-auto-sidebar": "0.0.0-next-
|
|
32
|
+
"@modern-js/builder-doc": "0.0.0-next-1679037277335",
|
|
33
|
+
"@modern-js/doc-tools": "0.0.0-next-1679037277335",
|
|
34
|
+
"@modern-js/doc-plugin-auto-sidebar": "0.0.0-next-1679037277335"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"dev": "modern dev",
|
package/src/pages/index.tsx
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import clsx from 'clsx';
|
|
2
|
-
import { useLang, Helmet } from '@modern-js/doc-tools/runtime';
|
|
2
|
+
import { useLang, Helmet, useLocation } from '@modern-js/doc-tools/runtime';
|
|
3
|
+
import { useEffect } from 'react';
|
|
3
4
|
import ContentCard from '../components/ContentCard';
|
|
4
5
|
import SecondaryTitle from '../components/SecondaryTitle';
|
|
5
6
|
import { FeatureLayout } from '../components/FeatureLayout';
|
|
@@ -44,6 +45,13 @@ const HomepageHeader = () => {
|
|
|
44
45
|
|
|
45
46
|
export default function Home() {
|
|
46
47
|
const t = useI18n();
|
|
48
|
+
const { pathname } = useLocation();
|
|
49
|
+
useEffect(() => {
|
|
50
|
+
window.MODERN_THEME = 'dark';
|
|
51
|
+
return () => {
|
|
52
|
+
window.MODERN_THEME = undefined;
|
|
53
|
+
};
|
|
54
|
+
}, [pathname]);
|
|
47
55
|
|
|
48
56
|
const features = [
|
|
49
57
|
{
|
|
@@ -106,10 +114,7 @@ export default function Home() {
|
|
|
106
114
|
<div>
|
|
107
115
|
<Helmet>
|
|
108
116
|
<html className="dark"></html>
|
|
109
|
-
<script>
|
|
110
|
-
localStorage && localStorage.setItem('modern-theme-appearance',
|
|
111
|
-
'dark');
|
|
112
|
-
</script>
|
|
117
|
+
<script>window.MODERN_THEME = 'dark';</script>
|
|
113
118
|
<style type="text/css">{`
|
|
114
119
|
.modern-doc-appearance {
|
|
115
120
|
display: none!important;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: assetPrefix
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# dev.assetPrefix
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [dev.assetPrefix](https://modernjs.dev/builder/en/api/config-dev.html#devassetprefix).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/dev/assetPrefix.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: beforeStartUrl
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# dev.beforeStartUrl
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [dev.beforeStartUrl](https://modernjs.dev/builder/en/api/config-dev.html#devbeforestarturl).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/dev/beforeStartUrl.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: hmr
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# dev.hmr
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [dev.hmr](https://modernjs.dev/builder/en/api/config-dev.html#devhmr).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/dev/hmr.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: host
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# dev.host
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [dev.host](https://modernjs.dev/builder/en/api/config-dev.html#devhost).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/dev/host.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: https
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# dev.https
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [dev.https](https://modernjs.dev/builder/en/api/config-dev.html#devhttps).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/dev/https.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: port
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# dev.port
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [dev.port](https://modernjs.dev/builder/en/api/config-dev.html#devport).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/dev/port.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: progressBar
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# dev.progressBar
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [dev.progressBar](https://modernjs.dev/builder/en/api/config-dev.html#devprogressbar).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/dev/progressBar.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: startUrl
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# dev.startUrl
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [dev.startUrl](https://modernjs.dev/builder/en/api/config-dev.html#devstarturl).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/dev/startUrl.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: lazyCompilation
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# experiments.lazyCompilation
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [experiments.lazyCompilation](https://modernjs.dev/builder/en/api/config-experiments.html#experimentslazycompilation).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/experiments/lazyCompilation.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: appIcon
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# html.appIcon
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.appIcon](https://modernjs.dev/builder/en/api/config-html.html#htmlappicon).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/html/appIcon.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: crossorigin
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# html.crossorigin
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.crossorigin](https://modernjs.dev/builder/en/api/config-html.html#htmlcrossorigin).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/html/crossorigin.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: disableHtmlFolder
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# html.disableHtmlFolder
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.disableHtmlFolder](https://modernjs.dev/builder/en/api/config-html.html#htmldisablehtmlfolder).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/html/disableHtmlFolder.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: faviconByEntries
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# html.faviconByEntries
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.faviconByEntries](https://modernjs.dev/builder/en/api/config-html.html#htmlfaviconbyentries).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/html/faviconByEntries.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: favicon
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# html.favicon
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.favicon](https://modernjs.dev/builder/en/api/config-html.html#htmlfavicon).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/html/favicon.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: injectByEntries
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# html.injectByEntries
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.injectByEntries](https://modernjs.dev/builder/en/api/config-html.html#htmlinjectbyentries).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/html/injectByEntries.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: inject
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# html.inject
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.inject](https://modernjs.dev/builder/en/api/config-html.html#htmlinject).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/html/inject.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: metaByEntries
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# html.metaByEntries
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.metaByEntries](https://modernjs.dev/builder/en/api/config-html.html#htmlmetabyentries).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/html/metaByEntries.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: meta
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# html.meta
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.meta](https://modernjs.dev/builder/en/api/config-html.html#htmlmeta).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/html/meta.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: mountId
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# html.mountId
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.mountId](https://modernjs.dev/builder/en/api/config-html.html#htmlmountid).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/html/mountId.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: tagsByEntries
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# html.tagsByEntries
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.tagsByEntries](https://modernjs.dev/builder/en/api/config-html.html#htmltagsbyentries).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/html/tagsByEntries.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: tags
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# html.tags
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.tags](https://modernjs.dev/builder/en/api/config-html.html#htmltags).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/html/tags.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: templateByEntries
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# html.templateByEntries
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.templateByEntries](https://modernjs.dev/builder/en/api/config-html.html#htmltemplatebyentries).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/html/templateByEntries.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: templateParametersByEntries
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# html.templateParametersByEntries
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.templateParametersByEntries](https://modernjs.dev/builder/en/api/config-html.html#htmltemplateparametersbyentries).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/html/templateParametersByEntries.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: templateParameters
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# html.templateParameters
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.templateParameters](https://modernjs.dev/builder/en/api/config-html.html#htmltemplateparameters).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/html/templateParameters.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: template
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# html.template
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.template](https://modernjs.dev/builder/en/api/config-html.html#htmltemplate).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/html/template.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: titleByEntries
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# html.titleByEntries
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.titleByEntries](https://modernjs.dev/builder/en/api/config-html.html#htmltitlebyentries).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/html/titleByEntries.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: title
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# html.title
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [html.title](https://modernjs.dev/builder/en/api/config-html.html#htmltitle).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/html/title.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: assetPrefix
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# output.assetPrefix
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [output.assetPrefix](https://modernjs.dev/builder/en/api/config-output.html#outputassetprefix).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/output/assetPrefix.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: assetsRetry
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# output.assetsRetry
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [output.assetsRetry](https://modernjs.dev/builder/en/api/config-output.html#outputassetsretry).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/output/assetsRetry.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: charset
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# output.charset
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [output.charset](https://modernjs.dev/builder/en/api/config-output.html#outputcharset).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/output/charset.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: cleanDistPath
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# output.cleanDistPath
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [output.cleanDistPath](https://modernjs.dev/builder/en/api/config-output.html#outputcleandistpath).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/output/cleanDistPath.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: convertToRem
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# output.convertToRem
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [output.convertToRem](https://modernjs.dev/builder/en/api/config-output.html#outputconverttorem).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/output/convertToRem.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: copy
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# output.copy
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [output.copy](https://modernjs.dev/builder/en/api/config-output.html#outputcopy).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/output/copy.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_label: cssModuleLocalIdentName
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# output.cssModuleLocalIdentName
|
|
6
|
-
|
|
7
|
-
:::tip
|
|
8
|
-
This config is provided by Modern.js Builder, more detail can see [output.cssModuleLocalIdentName](https://modernjs.dev/builder/en/api/config-output.html#outputcssmodulelocalidentname).
|
|
9
|
-
:::
|
|
10
|
-
|
|
11
|
-
import Main from '@modern-js/builder-doc/docs/en/config/output/cssModuleLocalIdentName.md';
|
|
12
|
-
|
|
13
|
-
<Main />
|