Hi Sander,

The problem i'm facing is the input folder for serve command.

+ProjectRoot
 |- src
     | - feature-folder
         | -feature.component.ts
         |- feature.html

 |- demo
     |-feature-demo-folder
        |- demo-feature.component.ts
        |- demo-feature.html

angular-cli.json by default has the root as 'src' - So when I run 'ng 
build' it bundles the resources under src folder. When i run 'ng server' 
without making any changes to the root value in angular-cli.json, it picks 
up the files from src folder instead I want the command to use the files 
from demo folder. To make ng server work in the way i expect , i need to 
manually edit/set the 'root' property in angular-cli.json to 'demo'. 

Does --output-path helps here?

Thanks

On Thursday, March 30, 2017 at 7:31:00 PM UTC-7, Sander Elias wrote:
>
> Hi Jay,
>
>
> As far as I know normally the CLI serves compiled files from memory when 
> using build, and only commits files to disk on build.(to the dist folder.). 
> There is this new --output-path 
> <https://github.com/angular/angular-cli/wiki/serve> switch, that you can 
> use to do what you want.
>
> 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.

Reply via email to