简体   繁体   中英

ExpressJs configuring html and css pages

I am a newbie in ExpressJs. I have tried using html and css while building the app. But there is always asset-pipelining problem. Sometime css could not be loaded and sometime it does not get refreshed even if I restart the server. I have used static serve method. Still could not figure out the problem. Please help me out of this.

here is the solution

 install npm serve-static

this should solve the problem

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM