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

feat(build): Add terser #243

Merged
merged 2 commits into from
Nov 21, 2024
Merged

feat(build): Add terser #243

merged 2 commits into from
Nov 21, 2024

Conversation

Aqr-K
Copy link
Contributor

@Aqr-K Aqr-K commented Nov 21, 2024

  • 引入 terser ,打包时自动移除 console 相关语句(开发环境无影响);解决生产环境中,将console打印到浏览器控制台后,产生的内存泄漏问题;
  • 暂时只开启 console 移除,未开启 debug 移除;debug 可酌情选择是否开启。

@Aqr-K Aqr-K changed the title feat(build): terser feat(build): Add terser Nov 21, 2024
@jxxghp jxxghp merged commit f4daee8 into jxxghp:v2 Nov 21, 2024
@Aqr-K Aqr-K deleted the v2-terser branch November 22, 2024 21:10
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.

2 participants