File tree 3 files changed +3
-39
lines changed
3 files changed +3
-39
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -82,4 +82,4 @@ GitHub 项目地址:[React-Mobile-Template](https://github.com/huangmingfu/rea
82
82
1 . 目前有一些ui库还未支持React19,本项目使用的是18.3.1版本,谨慎升级react版本。
83
83
2 . postcss-pxtorem插件不支持内联样式,所以 ` utils ` 里面配备了 ` px2rem ` 函数解决。示例:` <div style={{ width: px2rem(100) }}>test</div> `
84
84
3 . 以下场景pxtorem插件不会转换rem:
85
- (1).在main.ts里引入样式,如 ` import '@/styles/scss/global.scss'; ` ,建议引入不涉及px的样式,如reset.css
85
+ (1).在main.ts里引入样式,如 ` import '@/styles/scss/global.scss'; ` ,建议引入不涉及px的样式,如reset.css。
Original file line number Diff line number Diff line change 42
42
"preinstall" : " npx only-allow pnpm" ,
43
43
"postinstall" : " npx simple-git-hooks" ,
44
44
"clean" : " rm -rf node_modules dist dist-*" ,
45
- "deps:check" : " pnpm outdated -r" ,
46
- "deps:update" : " pnpm update --latest"
45
+ "deps:check" : " pnpm outdated -r"
47
46
},
48
47
"dependencies" : {
49
48
"ahooks" : " ^3.8.4" ,
60
59
},
61
60
"devDependencies" : {
62
61
"@antfu/eslint-config" : " ^3.12.1" ,
63
- "@commitlint/cli" : " ^19.6.1" ,
64
- "@commitlint/config-conventional" : " ^19.6.0" ,
65
62
"@eslint-react/eslint-plugin" : " ^1.22.1" ,
66
63
"@react-dev-inspector/vite-plugin" : " ^2.0.1" ,
67
64
"@types/node" : " ^22.10.2" ,
83
80
"vite-plugin-checker" : " ^0.8.0"
84
81
},
85
82
"simple-git-hooks" : {
86
- "pre-commit" : " npx lint-staged" ,
87
- "commit-msg" : " npx --no -- commitlint --edit $1" ,
88
- "preserveUnused" : [" commit-msg" ]
83
+ "pre-commit" : " npx lint-staged"
89
84
},
90
85
"lint-staged" : {
91
86
"*" : " eslint --fix"
You can’t perform that action at this time.
0 commit comments