@modern-js/main-doc 0.0.0-nightly-20241023170701 → 0.0.0-nightly-20241024073545

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.
@@ -76,3 +76,6 @@ export default {
76
76
  };
77
77
  ```
78
78
 
79
+ #### Clean up cert cache
80
+
81
+ The certificate created by devcert is saved in `~/Library/Application\ Support/devcert`. You may do some cleanup if needed.
@@ -18,6 +18,19 @@ const defaultOptions = {
18
18
  filename, // 基于 `output.distPath` 和 `entryName` 生成
19
19
  templateParameters, // 对应 `html.templateParameters` 配置
20
20
  chunks: [entryName],
21
+ minify: { // // generated based on `output.disableMinimize` and `output.minify`
22
+ removeComments: false,
23
+ useShortDoctype: true,
24
+ keepClosingSlash: true,
25
+ collapseWhitespace: true,
26
+ removeRedundantAttributes: true,
27
+ removeScriptTypeAttributes: true,
28
+ removeStyleLinkTypeAttributes: true,
29
+ removeEmptyAttributes: true,
30
+ minifyJS, // generated based on `output.charset`, `output.legalComments` and `performance.removeConsole`
31
+ minifyCSS: true,
32
+ minifyURLs: true,
33
+ },
21
34
  };
22
35
  ```
23
36
 
@@ -77,3 +77,6 @@ export default {
77
77
  };
78
78
  ```
79
79
 
80
+ #### 清理证书缓存
81
+
82
+ devcert 默认会将生成的证书缓存在 `~/Library/Application\ Support/devcert` ,你可以按需清理。
@@ -18,6 +18,19 @@ const defaultOptions = {
18
18
  filename, // 基于 `output.distPath` 和 `entryName` 生成
19
19
  templateParameters, // 对应 `html.templateParameters` 配置
20
20
  chunks: [entryName],
21
+ minify: { // 基于 `output.minify` 和 `output.disableMinimize` 生成
22
+ removeComments: false,
23
+ useShortDoctype: true,
24
+ keepClosingSlash: true,
25
+ collapseWhitespace: true,
26
+ removeRedundantAttributes: true,
27
+ removeScriptTypeAttributes: true,
28
+ removeStyleLinkTypeAttributes: true,
29
+ removeEmptyAttributes: true,
30
+ minifyJS, // 基于 `output.charset`、`output.legalComments` 和 `performance.removeConsole` 生成
31
+ minifyCSS: true,
32
+ minifyURLs: true,
33
+ },
21
34
  };
22
35
  ```
23
36
 
package/package.json CHANGED
@@ -15,14 +15,14 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-nightly-20241023170701",
18
+ "version": "0.0.0-nightly-20241024073545",
19
19
  "publishConfig": {
20
20
  "registry": "https://registry.npmjs.org/",
21
21
  "access": "public",
22
22
  "provenance": true
23
23
  },
24
24
  "dependencies": {
25
- "@modern-js/sandpack-react": "0.0.0-nightly-20241023170701"
25
+ "@modern-js/sandpack-react": "0.0.0-nightly-20241024073545"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@rspress/shared": "1.31.1",