Here is what I have installed:
@angular/cli: 1.0.0-rc.1
node: 7.4.0
os: linux x64
@angular/common: 2.4.9
@angular/compiler: 2.4.9
@angular/core: 2.4.9
@angular/forms: 2.4.9
@angular/http: 2.4.9
@angular/platform-browser: 2.4.9
@angular/platform-browser-dynamic: 2.4.9
@angular/router: 3.4.9
@angular/cli: 1.0.0-rc.1
I have looked at this post Not generating dist folders , but I just want a dist directory generated so that I can link it with Express. The command I am using is
ng build --base-href /apply/
I understand with ng serve the files are created in memory. However I am not using ng serve. I have a Express static path
app.use('/', express.static(path.resolve('../../dist')));
Since the build command does not create the dist directory I cannot serve the angular application. The answer in the link (above) says to use the --watch argument. Why do I have to do that? Shouldn't ng build create the dist directory?
Am I missing something obvious. Any help is appreciated.