Search code examples
typescriptminify

Is it possible to compile TypeScript into minified code?


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?


Solution

  • The TypeScript compiler does not support the generation of minified 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