Yeoman inside ExpressJS

前端 未结 6 849
暖寄归人
暖寄归人 2020-12-23 12:05

I\'d still like to try to get an example running w/ Yeoman and Express.

I tried the following and it worked \"okay\", but I\'m stuck merging the routes. (over simpl

6条回答
  •  -上瘾入骨i
    2020-12-23 13:02

    I'm having troubles with this solution: express still try to load index.jade instead of index.html, but if I enter localhost:3000/index.html express render correctly. I solved removing this line from app.js:

    //app.get('/', routes.index);
    

    Hope this helps. Thanks for sharing, D.

提交回复
热议问题