Grunt a TypeScript to JavaScript with uglify Grunt a TypeScript to JavaScript with uglify node.js node.js

Grunt a TypeScript to JavaScript with uglify


I tried to reproduce your problem with the following environment:

grunt: 0.4.1grunt-contrib-uglify: 0.2.2grunt-typescript: 0.2.4nodejs: 0.10.15

I had to change uglify.dist.options.sourceMapIn to '../js/main.js.map' and uglify.dist.files['../js/main.min.js'] to ['../js/main.js'], i. e. make the paths relative to the gruntfile location. Afterwards, compilation worked flawlessly and both ../js/main.min.js and ../js/main.min.map looked correct.