csr632
csr632
Great feature! Thanks! I pushed some style tweaks. Hope you don't mind. I will merge this tomorrow, so you have time to review my commits and make more changes.
The border seems to come from browser defatult style for button (you didn't define border style, only border-radius). I don't know if it looks ok in every browser. It looks...
Maybe related to https://github.com/microsoft/TypeScript/issues/48626#issuecomment-1098168620? I don't fully understand the comment.
i18n is now supported. Checkout the [document](https://vitejs.github.io/vite-plugin-react-pages/i18n). Sorry for the delay.
Search feature still need to be done. I will implement it after migrating to vite3.
TODO: - feature: page search - docs: chinese translation of the document site. Tracked in https://github.com/vitejs/vite-plugin-react-pages/issues/74
> is there any progress on this issue? Search is under development. I will publish it this weekend. @callmeYe
> Thanks! I desperately need the search feature. I have published an alpha version: `[email protected]`. You can try it out. I will publish it after more testing. @callmeYe Ref PR:...
我写了一个less插件来自动移除antd的全局样式`antd/lib/style/core/global.less`: https://github.com/csr632/less-plugin-remove-antd-global-styles 能够与vite, webpack, rollup以及babel-plugin-import一起使用。
一些资料: [Performance of CSS Variables](https://lisilinhart.info/posts/css-variables-performance/) [Reduce the scope and complexity of style calculations](https://web.dev/reduce-the-scope-and-complexity-of-style-calculations/)