Is it possible to compile TypeScript into minified code?

前端 未结 2 1205
遥遥无期
遥遥无期 2020-12-05 16:58

Is there an option to compile TypeScript code\'s output as minified? Or are we left to deal with that in a separate process? And does obfuscation affect the answer?

2条回答
  •  不知归路
    2020-12-05 17:17

    The TypeScript compiler does not support the generation of minifies or obfuscated code. you will need to use another tool against the JavaScript output of the compiler.

    There's an open feature request: microsoft/TypeScript#8

提交回复
热议问题