I initially started a project with beta 10 of the angular-cli
, when I run ng serve
at that point of time the dist folder would contain the compiled files that were generated by ng serve
.
Now I upgraded my app to RC5 and beta 11.webpack
of the angular-cli
and ng serve
doesn't generate the dist folder anymore.
This is problematic because I have a Spring Boot backend which is configured to map the dist folder as it's static folder.
Is there a way to get this behaviour with the webpack angular-cli as well?
Exact version of angular-cli is: 1.0.0-beta.11-webpack.2
Edit: the point is that I need the auto compile from ng serve, I don't want to run ng build every time I make a change in the source files.
The new angular-cli version with webpack will generate dist
folder only after ng build
.
ng serve
works only in-memory now.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With