Reputation: 241
I'm outputting my typescript project to single js files but want to change the name of the output files to filename.debug.js instead of filename.js. Is this possible.
This *.debug.js files then go through a minimizer and get outputted to *.js
Using TS with VS 2012.
Thanks
Donal
Upvotes: 3
Views: 1068
Reputation: 14557
You can change this in the in the csproj file. In there you find some TypeScript tags (For example TypeScriptTarget, TypeScriptModuleKind). Just put the following there:
<TypeScriptOutFile>test.debug.js</TypeScriptOutFile>
Make sure you put it in the right place for debug/release configurations.
For vs2013 users, you can just go to the project properties page and there you find the "TypeScript Build" tab on the left. There you find the option: Combine Javascript output (which adds the above xml)
Upvotes: 1