张涛 1 year ago
parent
commit
66a97f2238
4 changed files with 12899 additions and 75974 deletions
  1. 13
    22
      config/index.js
  2. 0
    59473
      package-lock.json
  3. 0
    2
      package.json
  4. 12886
    16477
      yarn.lock

+ 13
- 22
config/index.js View File

54
     //   },
54
     //   },
55
     // },
55
     // },
56
     h5: {
56
     h5: {
57
+      esnextModules: ["@antmjs"],
57
       publicPath: "/",
58
       publicPath: "/",
58
       staticDirectory: "static",
59
       staticDirectory: "static",
59
       outputDir: "dist",
60
       outputDir: "dist",
60
       router: {
61
       router: {
61
         mode: "hash",
62
         mode: "hash",
62
       },
63
       },
63
-      esnextModules: ["@antmjs/vantui"],
64
-      miniCssExtractPluginOption: {
65
-        ignoreOrder: true,
66
-        filename: "css/[name].[hash].css",
67
-        chunkFilename: "css/[id].css",
68
-      },
69
-
70
       postcss: {
64
       postcss: {
71
-      
72
-     
73
         pxtransform: {
65
         pxtransform: {
74
           enable: true,
66
           enable: true,
75
           config: {
67
           config: {
76
-            // 设置rpx转换为目标单位为rem
77
-            unitToRem: true,
78
-            // 设计稿宽度与 rem 基准值,默认设计稿宽度为 750,即 1rem = 75px
79
-            designWidth: 750,
80
-            // 可选,选择器黑名单
81
-            selectorBlackList: [],
82
-            // // 可选,替换rpx为其他单位后缀,例如 'px' 或 'rem'
83
-            propList: ["*"],
84
-            // 可选,媒体查询中是否禁用转换
85
-            mediaQuery: false,
86
-            // 可选,是否转换页面根节点字体大小,如body: font-size: 16px
87
-            minPixelValue: 0,
88
-
68
+            // // 设置rpx转换为目标单位为rem
69
+            // unitToRem: true,
70
+            // // 设计稿宽度与 rem 基准值,默认设计稿宽度为 750,即 1rem = 75px
71
+            // designWidth: 750,
72
+            // // 可选,选择器黑名单
73
+            // selectorBlackList: ["body"],
74
+            // // // 可选,替换rpx为其他单位后缀,例如 'px' 或 'rem'
75
+            // propList: ["*"],
76
+            // // 可选,媒体查询中是否禁用转换
77
+            // mediaQuery: false,
78
+            // // 可选,是否转换页面根节点字体大小,如body: font-size: 16px
79
+            // minPixelValue: 0,
89
           },
80
           },
90
         },
81
         },
91
         cssModules: {
82
         cssModules: {

+ 0
- 59473
package-lock.json
File diff suppressed because it is too large
View File


+ 0
- 2
package.json View File

70
     "@types/node": "^18.15.11",
70
     "@types/node": "^18.15.11",
71
     "@types/react": "^18.0.0",
71
     "@types/react": "^18.0.0",
72
     "@types/webpack-env": "^1.13.6",
72
     "@types/webpack-env": "^1.13.6",
73
-    "babel-plugin-import": "^1.13.5",
74
     "babel-preset-taro": "3.6.25",
73
     "babel-preset-taro": "3.6.25",
75
     "eslint": "^8.12.0",
74
     "eslint": "^8.12.0",
76
     "eslint-config-taro": "3.6.25",
75
     "eslint-config-taro": "3.6.25",
80
     "jest": "^29.3.1",
79
     "jest": "^29.3.1",
81
     "jest-environment-jsdom": "^29.5.0",
80
     "jest-environment-jsdom": "^29.5.0",
82
     "postcss": "^8.4.18",
81
     "postcss": "^8.4.18",
83
-    "postcss-pxtorem": "^6.1.0",
84
     "react-refresh": "^0.11.0",
82
     "react-refresh": "^0.11.0",
85
     "stylelint": "^14.4.0",
83
     "stylelint": "^14.4.0",
86
     "webpack": "4.46.0"
84
     "webpack": "4.46.0"

+ 12886
- 16477
yarn.lock
File diff suppressed because it is too large
View File