hw-weapp-compiler 1.0.8 → 1.0.9

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/README.md CHANGED
@@ -16,14 +16,14 @@ npm i weapp-compiler@2.x -D
16
16
 
17
17
  ```bash
18
18
  # 开发调试
19
- npm run dev # 测试环境
20
- npm run dev -- -s # 预发环境
21
- npm run dev -- -p # 生产环境
19
+ npm run dev # 测试环境
20
+ npm run dev -s # 预发环境
21
+ npm run dev -p # 生产环境
22
22
 
23
23
  # 生产发布
24
- npm run build -- -d # 测试环境
25
- npm run build -- -s # 预发环境
26
- npm run build # 生产环境
24
+ npm run build -d # 测试环境
25
+ npm run build -s # 预发环境
26
+ npm run build # 生产环境
27
27
  ```
28
28
 
29
29
  ## 配置
@@ -35,6 +35,8 @@ function createCompilerHandler(label, { failOnError = label === 'build' } = {})
35
35
  console.warn(
36
36
  stats.toString({
37
37
  chunks: false,
38
+ modules: false,
39
+ entrypoints: false,
38
40
  colors: true,
39
41
  warnings: true,
40
42
  errors: false,
@@ -206,6 +206,9 @@ module.exports = (options, { analyzer, quiet } = {}) => {
206
206
  stats: {
207
207
  errorDetails: true,
208
208
  },
209
+ performance: {
210
+ hints: false,
211
+ },
209
212
  output: {
210
213
  path: DIST_DIR,
211
214
  publicPath,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hw-weapp-compiler",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "基于 webpack5 的小程序构建工具,兼容 Node.js 14~24",
5
5
  "main": "index.js",
6
6
  "bin": {