阅读背景:

如何在index.html中使用express / nodejs正确包含外部css和js文件?

来源:互联网 

I am trying to wrap my html in a nodejs express app (latest version of express). I try using res.sendFile to send my "index.html" file. I am running into an issue where there are a lot of 404s when loading the page in a browser because it can't find any of my js or css files. My js files are in the bower_components directory, some are in "js" directory. My css files are in a "css" directory.I am trying to wrap my html in a nodejs express




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: