Search code examples
cssnode.jsgwtexpressurl-mapping

NodeJS Express hosted GWT compiled application not rendering CSS


I have this GWT application that I placed within NodeJS/Express. The site loads, however, the CSS is not applied. When I open the HTML file separately in the browser, however, it does render the CSS correctly.

Any idea why this happen? Am I missing something?

EDIT:

Server: NodeJS with Express

Client: Web app - Compiled with GWT


Solution

  • The base URL is different when running locally versus running on the domain hosted by nodeJS. Try using an absolute path or adding an errorHandler to find the base URL.