在unreal中,TypeScript编译能增加选项去压缩js代码,或者pack代码的流程么? #1806
Unanswered
watsonsong
asked this question in
Q&A
Replies: 2 comments 5 replies
-
没什么所谓的构建,如果你打开继承功能后,会新增一个编辑器下watch。这个watch用的也是标准的ts工程配置文件。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
编译JS删除注释,tsc本身的配置就可以了 压缩代码是一个大话题,tsc本身都没有提供这个能力(microsoft/TypeScript#8 这是TypeScript当时讨论的帖子,很长。。结论就是每个项目的需求可能都不同,TypeScript重复已有的轮子比如uglify-js等工具,工作量大,带来的意义却不大) Pack文件的话,需要留意一个问题,就是modular.js里面,对于let org_require = global.require; 这部分调用 |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
目前的构建似乎是用typescript在进行编译。是否有参考流程可以构建的过程中对代码删除注释,压缩以及Pack文件。
以及编译器从tsc切换到类似swc来提高编译速度的方法?
Beta Was this translation helpful? Give feedback.
All reactions