@xfe-repo/mini-app 0.0.10 → 0.0.12

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.
Files changed (2) hide show
  1. package/config/index.ts +4 -4
  2. package/package.json +1 -1
package/config/index.ts CHANGED
@@ -15,12 +15,12 @@ export default defineConfig<'webpack5'>(async (merge) => {
15
15
  const baseConfig: UserConfigExport<'webpack5'> = {
16
16
  projectName: 'xfe-mini',
17
17
  date: '2024-12-3',
18
- designWidth: 750,
18
+ designWidth: 375,
19
19
  deviceRatio: {
20
+ 375: 2,
20
21
  640: 2.34 / 2,
21
22
  750: 1,
22
- 375: 2,
23
- 828: 1.81 / 2
23
+ 828: 1.81 / 2,
24
24
  },
25
25
  // 项目根目录 相对于当前文件
26
26
  sourceRoot: path.join(appProjectRootRelPath, 'src'),
@@ -53,7 +53,7 @@ export default defineConfig<'webpack5'>(async (merge) => {
53
53
  config: {}
54
54
  },
55
55
  cssModules: {
56
- enable: false, // 默认为 false,如需使用 css modules 功能,则设为 true
56
+ enable: true, // 默认为 false,如需使用 css modules 功能,则设为 true
57
57
  config: {
58
58
  namingPattern: 'module', // 转换模式,取值为 global/module
59
59
  generateScopedName: '[name]__[local]___[hash:base64:5]'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xfe-repo/mini-app",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "bin": {
5
5
  "xfe-mini": "./bin/index.js"
6
6
  },