@modern-js/main-doc 0.0.0-next-1679490675897 → 0.0.0-next-1679541545516

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 CHANGED
@@ -1,17 +1,17 @@
1
1
  # @modern-js/main-doc
2
2
 
3
- ## 0.0.0-next-1679490675897
3
+ ## 0.0.0-next-1679541545516
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - 92d247f1e3: fix: support tools.devServer.header include string[] type, remove get & delete & apply api in hook or middleware api
7
+ - 92d247f1e: fix: support tools.devServer.header include string[] type, remove get & delete & apply api in hook or middleware api
8
8
  fix: 支持 tools.devServer.header 包含字符串数组类型,移除 Hook 和 Middleware 中对 响应 Cookie 的获取、删除操作
9
- - 19e552a077: fix: main doc theme
9
+ - 19e552a07: fix: main doc theme
10
10
 
11
11
  fix: 首页深色模式问题
12
12
 
13
- - Updated dependencies [cfdbf80331]
14
- - @modern-js/builder-doc@0.0.0-next-1679490675897
13
+ - Updated dependencies [cfdbf8033]
14
+ - @modern-js/builder-doc@0.0.0-next-1679541545516
15
15
 
16
16
  ## 2.9.0
17
17
 
@@ -0,0 +1,20 @@
1
+ ---
2
+ sidebar_label: splitRouteChunks
3
+ ---
4
+
5
+ # output.splitRouteChunks
6
+
7
+ - **Type:** `boolean`
8
+ - **Default:** `true`
9
+
10
+ When using convention-based routing, the framework will split js and css based on the route to load on demand. If your project does not want to split js and css based on routes, you can set this option to `false`.
11
+
12
+ Example:
13
+
14
+ ```ts
15
+ export default {
16
+ output: {
17
+ splitRouteChunks: false,
18
+ },
19
+ }
20
+ ```
@@ -0,0 +1,20 @@
1
+ ---
2
+ sidebar_label: splitRouteChunks
3
+ ---
4
+
5
+ # output.splitRouteChunks
6
+
7
+ - **类型:** `boolean`
8
+ - **默认值:** `true`
9
+
10
+ 当使用约定式路由时,框架会根据路由对 js 和 css 进行拆分,以实现按需加载。如果你的项目不希望根据路由对 js 和 css 进行拆分,可以将该选项设置为 `false`。
11
+
12
+ 示例
13
+
14
+ ```ts
15
+ export default {
16
+ output: {
17
+ splitRouteChunks: false,
18
+ },
19
+ }
20
+ ```
package/package.json CHANGED
@@ -11,13 +11,13 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "0.0.0-next-1679490675897",
14
+ "version": "0.0.0-next-1679541545516",
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-1679490675897"
20
+ "@modern-js/builder-doc": "0.0.0-next-1679541545516"
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-1679490675897",
33
- "@modern-js/doc-tools": "0.0.0-next-1679490675897",
34
- "@modern-js/doc-plugin-auto-sidebar": "0.0.0-next-1679490675897"
32
+ "@modern-js/builder-doc": "0.0.0-next-1679541545516",
33
+ "@modern-js/doc-tools": "0.0.0-next-1679541545516",
34
+ "@modern-js/doc-plugin-auto-sidebar": "0.0.0-next-1679541545516"
35
35
  },
36
36
  "scripts": {
37
37
  "dev": "modern dev",