I wanted to minify typescript files in my angular app.I tried by giving grunt command in my Gruntfile.js as
uglify:{ ts:{ src:['test/scripts/**/*.ts'], dest:'test/scripts/**/*.ts' }, js:{ src:['test/scripts/hr.js'], dest:'test/scripts/hr.js' } } When I ran the command grunt uglify The js files were uglified but not the ts files.How can I minify ts files?
.jsfiles AFTER they have been compiled to JavaScript. This makes it a two step process if you use grunt to compile your TypeScript.