Rebuild angular universal on save
See original GitHub issueI turned my application to angular universal. It’s great but I have a problem with developing mode. I need see my editing result real-time. I need restart my app on each atrl+s (save) like "build --watch"
and "nodmeon"
.
My server is expressjs and I’m using "npm run build:ssr"
after each edit. It takes lots of time!!
How can I do that?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:16
- Comments:27 (4 by maintainers)
Top Results From Across the Web
Angular universal not rebuilding with new code - Stack Overflow
I've uninstalled jQuery from the project now and checked that no other plugins rely on it however when I rebuild the project it...
Read more >Angular Universal: Complete Practical Guide
This post will be a complete practical guide for getting started with Angular Universal. We are going to go start with an existing...
Read more >Creating an Angular Universal app with the Angular CLI
The code that follows is based on a fresh new app created with the Angular CLI. You can revert the changes we have...
Read more >Server-side rendering (SSR) with Angular Universal
This guide describes Angular Universal, a technology that renders Angular applications on the server. A normal Angular application executes in the browser, ...
Read more >Build faster JavaScript Web Apps with Angular Universal, a ...
Search Engine Optimization (SEO) is vital for most web applications. You can build SEO-friendly Angular apps with Angular Universal.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Agree with @samialmorshedi, I am managing this with nodemon until the formal advice.
Add Following line on package.json
"ssr:serve": "nodemon --watch src/ -e ts,html,scss --exec 'npm run build:ssr && npm run serve:ssr'"
Start App
npm run ssr:serve
@Toxicable Are there any news guys? I think this solution using
nodemon
is not suitable for large projects as it completely rebuilds the whole app on every change. Are there any other approaches?