George Chen

Results 5 issues of George Chen

和`start`变量同步,`start`隐式判断了`null`与`undefined`,而`end`只显式判断了`undefined`。当`end`的值为`null`时,会参与后部分代码的数字比较,例如`end < 0`(`null < 0`)。

[postcss-mobile-forever](https://github.com/wswmsword/postcss-mobile-forever) 是一款 PostCSS 插件,用于移动端界面的适配开发。有很多项目会使用 postcss-px-to-viewport 做移动端适配,但是会导致用户无法从 pc 端之类的宽屏设备上观看界面,只能看到非常大的界面元素,这个插件用来解决这个问题。 ![图片展示了经过 mobile-forever 插件转换的界面,在 Mac、iPad、iPhone 上的模样](https://github.com/ruanyf/weekly/assets/26893092/7bbccbe3-d5d3-455b-96f0-0db66203d2fd)

近期我写了个插件,[postcss-mobile-forever](https://github.com/wswmsword/postcss-mobile-forever),可以转换视口单位,限制最大宽度,即使在桌面端也有和移动端一样的展示效果。如果有意愿的话,我可以提个 pr。

### Related plugins - [ ] [plugin-vue](https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue) - [x] [plugin-vue-jsx](https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue-jsx) ### Describe the bug I'm using the jsx component and the PostCSS plugin [postcss-mobile-forever](https://github.com/wswmsword/postcss-mobile-forever) to do the style conversion. The...

pending triage

你好 ZYCHOOO,我最近写了个插件 [postcss-mobile-forever](https://github.com/wswmsword/postcss-mobile-forever),它可以转换有最大宽度的伸缩移动端视图,解决了 px-to-viewport 在大屏上字体很大的问题,我最近在推广这个插件,搜到了你的项目。 如果您有意向做桌面端优化,欢迎合并~ 下面是我用了插件之后的截图: