Build Angular2 HTML and TypeScript to a single file

Viewed 10505

I'm putting together an app (Large scale) using Angular2 and TypeScript. It will need to be divided into numerous projects and each project will have numerous components each with a .html view, .css stylesheet and .ts logic / class.

I would like each project to compile to a single *.js file and be copied to a host website which will run in IIS. This would be similar to how a WPF or Silverlight app is built with the .xaml files all getting compiled into the .dll.

I've had a look around the web and am able to get the .ts files to build to a single .js file using the --outFile option. But this doesn't help me with the .html files or the css.

Any help would be greatly appreciated even if it's to say that what I'm asking is impossible :-)

Stephen

1 Answers
Related