question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rebuild angular universal on save

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Reactions:16
  • Comments:27 (4 by maintainers)

github_iconTop GitHub Comments

17reactions
sushrestcommented, Feb 10, 2019

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

16reactions
th0rcommented, Jul 1, 2019

@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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found