filewatcher -> buildin outfile problem
Hi,
I was happy with the Typescript Filewatcher. The option was
--outFile $FileNameWithoutExtension$.js
Now I can't squeeze the original Filename into the tsconfig.json.
root
basis.ts
basis2.ts
--Ordner1
machwas.ts imports basis.ts
->machwas.js
--Ordner2
machanderes.ts imports basis2.ts
-> machanderes.js
My aim is to create different Webpages with independent folder which compile from Files in the root-file.
It seems not to work with the build-in compiler.
My tsconfig:
{
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"sourceMap": true,
"outFile": "file.js", //what to write?
},
"exclude": [
"node_modules"
]
}
Mit lieben Grüßen,
Uli Strautz
Please sign in to leave a comment.
You can't have multiple "outFile" options in tsconfig.json, neither you can use variables to specify an output file name (and this is not a Webstorm limitation - this is a way tsc compiler works). You can try creating several tsconfig.json files (1 for each of your Ordner folders) and specify different outfiles there.
Note that using `--outfile` is not a recommended practice - see https://basarat.gitbooks.io/typescript/docs/tips/outFile.html