[英]NodeJS Express hosted GWT compiled application not rendering CSS
I have this GWT application that I placed within NodeJS/Express. 我有放置在NodeJS / Express中的GWT应用程序。 The site loads, however, the CSS is not applied.
站点加载,但是未应用CSS。 When I open the HTML file separately in the browser, however, it does render the CSS correctly.
但是,当我在浏览器中单独打开HTML文件时,它确实可以正确呈现CSS。
Any idea why this happen? 知道为什么会这样吗? Am I missing something?
我想念什么吗?
EDIT: 编辑:
Server: NodeJS with Express 服务器:带有Express的NodeJS
Client: Web app - Compiled with GWT 客户端:Web应用-与GWT一起编译
The base URL is different when running locally versus running on the domain hosted by nodeJS . 在本地运行和在nodeJS托管的域上运行时,基本URL 不同 。 Try using an absolute path or adding an errorHandler to find the base URL.
尝试使用绝对路径或添加errorHandler来查找基本URL。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.