@modern-js/main-doc 2.68.0 → 2.68.1
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.
@@ -175,7 +175,7 @@ Options:
|
|
175
175
|
|
176
176
|
## modern inspect
|
177
177
|
|
178
|
-
The `modern inspect` command is used to view the [Rsbuild config](https://rsbuild.rs/config/index) and webpack or Rspack config of the project.
|
178
|
+
The `modern inspect` command is used to view the Modern.js config, [Rsbuild config](https://rsbuild.rs/config/index) and webpack or Rspack config of the project.
|
179
179
|
|
180
180
|
```bash
|
181
181
|
Usage: modern inspect [options]
|
@@ -190,6 +190,7 @@ Options:
|
|
190
190
|
|
191
191
|
After executing the command `npx modern inspect` in the project root directory, the following files will be generated in the `dist` directory of the project:
|
192
192
|
|
193
|
+
- `modern.js.config.mjs`:The Modern.js configuration currently used.
|
193
194
|
- `rsbuild.config.mjs`: The Rsbuild config to use at build time.
|
194
195
|
- `webpack.config.web.mjs`: The webpack config used by to use at build time.
|
195
196
|
|
@@ -200,6 +201,7 @@ Inspect config succeed, open following files to view the content:
|
|
200
201
|
|
201
202
|
- Rsbuild Config: /root/my-project/dist/rsbuild.config.mjs
|
202
203
|
- Webpack Config (web): /root/my-project/dist/webpack.config.web.mjs
|
204
|
+
- Modern.js Config: /root/my-project/dist/modern.js.config.mjs
|
203
205
|
```
|
204
206
|
|
205
207
|
### Configuration Env
|
@@ -230,6 +232,7 @@ Inspect config succeed, open following files to view the content:
|
|
230
232
|
- Rsbuild Config: /root/my-project/dist/rsbuild.config.mjs
|
231
233
|
- Webpack Config (web): /root/my-project/dist/webpack.config.web.mjs
|
232
234
|
- Webpack Config (node): /root/my-project/dist/webpack.config.node.mjs
|
235
|
+
- Modern.js Config: /root/my-project/dist/modern.js.config.mjs
|
233
236
|
```
|
234
237
|
|
235
238
|
import DeployCommand from '@site-docs-en/components/deploy-command';
|
@@ -175,7 +175,7 @@ Options:
|
|
175
175
|
|
176
176
|
## modern inspect
|
177
177
|
|
178
|
-
`modern inspect` 命令用于查看项目的 [Rsbuild 配置](https://rsbuild.rs/zh/config/index) 以及 webpack 或 Rspack 配置。
|
178
|
+
`modern inspect` 命令用于查看项目的 Modern.js 配置、[Rsbuild 配置](https://rsbuild.rs/zh/config/index) 以及 webpack 或 Rspack 配置。
|
179
179
|
|
180
180
|
```bash
|
181
181
|
Usage: modern inspect [options]
|
@@ -190,6 +190,7 @@ Options:
|
|
190
190
|
|
191
191
|
在项目根目录下执行命令 `npx modern inspect` 后,会在项目的 `dist` 目录生成以下文件:
|
192
192
|
|
193
|
+
- `modern.js.config.mjs`: 表示当前使用的 Modern.js 配置。
|
193
194
|
- `rsbuild.config.mjs`: 表示在构建时使用的 Rsbuild 配置。
|
194
195
|
- `webpack.config.web.mjs`: 表示在构建时使用的 webpack 配置。
|
195
196
|
|
@@ -200,6 +201,7 @@ Inspect config succeed, open following files to view the content:
|
|
200
201
|
|
201
202
|
- Rsbuild Config: /root/my-project/dist/rsbuild.config.mjs
|
202
203
|
- Webpack Config (web): /root/my-project/dist/webpack.config.web.mjs
|
204
|
+
- Modern.js Config: /root/my-project/dist/modern.js.config.mjs
|
203
205
|
```
|
204
206
|
|
205
207
|
### 指定环境
|
@@ -230,6 +232,7 @@ Inspect config succeed, open following files to view the content:
|
|
230
232
|
- Rsbuild Config: /root/my-project/dist/rsbuild.config.mjs
|
231
233
|
- Webpack Config (web): /root/my-project/dist/webpack.config.web.mjs
|
232
234
|
- Webpack Config (node): /root/my-project/dist/webpack.config.node.mjs
|
235
|
+
- Modern.js Config: /root/my-project/dist/modern.js.config.mjs
|
233
236
|
```
|
234
237
|
|
235
238
|
import DeployCommand from '@site-docs/components/deploy-command';
|
package/package.json
CHANGED
@@ -15,17 +15,17 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.68.
|
18
|
+
"version": "2.68.1",
|
19
19
|
"publishConfig": {
|
20
20
|
"registry": "https://registry.npmjs.org/",
|
21
21
|
"access": "public"
|
22
22
|
},
|
23
23
|
"dependencies": {
|
24
24
|
"mermaid": "^11.4.1",
|
25
|
-
"@modern-js/sandpack-react": "2.68.
|
25
|
+
"@modern-js/sandpack-react": "2.68.1"
|
26
26
|
},
|
27
27
|
"devDependencies": {
|
28
|
-
"@rsbuild/plugin-sass": "1.3.
|
28
|
+
"@rsbuild/plugin-sass": "1.3.3",
|
29
29
|
"@shikijs/transformers": "^3.4.2",
|
30
30
|
"@rspress/shared": "2.0.0-beta.16",
|
31
31
|
"@rspress/plugin-llms": "2.0.0-beta.16",
|