Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to vite build #5

Merged
merged 13 commits into from
Feb 22, 2024
Merged

Move to vite build #5

merged 13 commits into from
Feb 22, 2024

Conversation

jokester
Copy link
Member

@jokester jokester commented Feb 17, 2024

CRA和react-scripts和rewire等东西已经年久失修 我把webpack设置移植到vite了

  • react antd等运行时的包版本不变
  • yarn换成npm (其实不换也可以,只是yarn v1也挺旧了)
  • 因为没有cra了,改用了新的eslint设置 来自我自己维护的ts模板
  • 只迁移build时 vite生成的build比以前略大,可能是1.8M 到2M这样。我把lodash换成可以摇树的lodash-es了,现在build总大小和以前差不多。

我自己的服务器 已经在用 未发现问题

.prettierrc Outdated
"singleQuote": true,
"trailingComma": "es5"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已有代码行尾带不带逗号的都有,加个设置有利于统一

@jokester jokester requested a review from kozzzx February 19, 2024 14:28
@jokester
Copy link
Member Author

@dr490n @kozzzx 我觉得没啥要改的了,有空可以review一下吗 🙏🏽

@kozzzx kozzzx merged commit 7174262 into moeflow-com:main Feb 22, 2024
@jokester jokester deleted the move-to-vite-build branch February 22, 2024 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants