Closed Skiyee closed 5 months ago
The recent updates enhance the handling of pages.json
paths in the Context
class and VitePluginUniLayouts
function. Context
now features a pageJsonPath
property, while VitePluginUniLayouts
dynamically sets this path based on user options. The refactored src/utils.ts
file simplifies string manipulation by replacing isCLIMode
with the new slash
function.
File | Change Summary |
---|---|
src/context.ts |
Added pageJsonPath property to Context class, initialized to 'src/pages.json' . Updated loadPagesJson to use this property. |
src/index.ts |
Introduced buildStart function in VitePluginUniLayouts to set pageJsonPath based on input options. |
src/utils.ts |
Replaced isCLIMode function with slash function for string manipulation. Simplified logic in loadPagesJson and getTarget . |
🐰 In the land where code does dance, Paths now change with circumstance.
pages.json
finds its way, Simplified for a brighter day. Withslash
in hand, we take our stance, To make our plugins sing and prance. 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
LGTM 💖
暂时别合并,在 H5端
表现异常
暂时别合并,在
H5端
表现异常
H5 下拿不到 input
用回 existsSync
, 仅在服务器启动时判断一次,性能可忽略不计?
由于 H5
和 非H5
在vite中表现不一致,目前只能采用这种方法
暂时别合并,在
H5端
表现异常H5 下拿不到 input
朋友,测试一下在 HBX
是否正常
暂时别合并,在
H5端
表现异常H5 下拿不到 input
朋友,测试一下在
HBX
是否正常
H5 dev 通过 H5 build 通过 mp-weixin dev 通过 mp-weixin build 通过
thx
Summary by CodeRabbit
New Features
pages.json
configuration, allowing flexibility based on input options.Improvements
pageJsonPath
, enhancing maintainability and readability.slash
function.