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

加快构建速度 #55

Merged
merged 3 commits into from
Apr 13, 2023
Merged

加快构建速度 #55

merged 3 commits into from
Apr 13, 2023

Conversation

gmlayer0
Copy link
Collaborator

No description provided.

@gmlayer0
Copy link
Collaborator Author

@GwokHiujin 确认一下相关修改是否可行

@gmlayer0
Copy link
Collaborator Author

之前的配置似乎会扫描 node_modules 目录下的所有文件,过一遍 tailwind 的 pass,造成构建非常慢。根据这个issue tailwind 的 utilities 似乎文件比较大,导入这个会造成构建缓慢,不知有没有替换方案

@gmlayer0 gmlayer0 linked an issue Apr 13, 2023 that may be closed by this pull request
@GwokHiujin
Copy link
Collaborator

@cjj826 我本地已经简单测试了 tailwind 基础功能类和自定义功能类的引用,如果方便的话可以用这个分支的配置测试样式能否正常显示。

1681366908086

Copy link
Collaborator

@GwokHiujin GwokHiujin left a comment

Choose a reason for hiding this comment

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

我修改了 tailwind 查找渲染目标的逻辑,顺便修复了样式文件似乎无法正常引入的问题(主要是配置引起的)

src/renderer/assets/index.css Outdated Show resolved Hide resolved
@gmlayer0 gmlayer0 merged commit cb1b1af into dev Apr 13, 2023
gmlayer0 pushed a commit that referenced this pull request Apr 13, 2023
@gmlayer0 gmlayer0 deleted the fix/build-speed branch April 13, 2023 09:02
Thysrael pushed a commit that referenced this pull request Apr 26, 2023
Thysrael pushed a commit that referenced this pull request Apr 26, 2023
gmlayer0 pushed a commit that referenced this pull request Apr 27, 2023
gmlayer0 pushed a commit that referenced this pull request Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

热重载问题
3 participants