Is it possible to compile typescript into mini code?

Is it possible to compile TypeScript code output as abbreviated? Or are we left to deal with this in a separate process? And does obfuscation affect the answer?

+50
typescript
01 Oct
source share
3 answers

The TypeScript compiler does not support thumbnail generation or code obfuscation. you will need to use another tool to output the javascript compiler.

+34
01 Oct '12 at 23:01
source share

I am the author of typescript-closure-compiler .
It is basically a tool that emits files that are compatible with the google closure compiler, which is probably the best minifier / optimizer / obfuscator.
I also created a playground that can show you the generated output.
You can see an example project that uses this tool.
The minimization process is performed using gulp.

+6
Dec 29 '16 at 22:58
source share

As pointed out by @joeriks and @jaysun, Web Essentials 2012 Extension can do this.

In the Options panel, go to Web sites> TypeScript and set the Minify generated JavaScript to true.

Update This functionality has been removed in version 3.0.

3.0 - August 24, 2013

TypeScript support removed

+5
May 6 '13 at 14:51
source share



All Articles