I figured out how to create the "dist" folder and its content. An "index.html" file is created but it doesn't do anything. I then set out to add a "script" line in the HEAD section of this file but the problem is that I've built my app with TypeScript. What is rendered is "main.ts", not "main.js".
Any advice on what I should do now? Robert On Friday, 7 April 2017 07:49:28 UTC-7, Robert Werner wrote: > > Sander, > > Yes, the app has been built. And I understand how Node.js is used during > the development. > > This is what is done in Bash to prepare a development session: > npm start > > I noticed that there is no "dist" folder. Instead, all of the files > appear to reside in memory. > > What do I need to do to force the files to be compiled & written to this > "dist" folder you speak of? I seem to recall trying "ng build" but don't > recall whether such a "dist" folder and its contents were created. > > Robert > > > On Friday, 7 April 2017 03:41:24 UTC-7, Sander Elias wrote: >> >> Hi Robert, >> >> Is the application already build? You can't build the app without >> nodejs. But if you have built the app already, depending on what you are >> doing, you can simply open up the index.html file from within the >> dist folder. Some things will not work without the page being served >> through a server. Give it a shot, if you are not using things that demand >> that, you are done. >> Otherwise, you need a small server to actually host the index.html >> This chrome extension >> <https://chrome.google.com/webstore/detail/web-server-for-chrome/ofhbbkphhbklhfoeikjpcbhemlocgigb> >> >> might be just what you need. But there are actually quite a lot being >> available that you can simply run from the command line. Although some off >> them might require nodejs by themselves :) >> >> Regards >> Sander >> > -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
