npm install supervisor -g
npm install
npm run build
npm run server
open http://localhost:3000
Use npm start
to run webpack watch.
./routes/index.js 把这个路由开起来,注释另一个路由 //weixin router // router.get('/', function(req, res) { // res.render('weixin', { title: 'Main' }); // });
npm install
npm run buildweixin
npm run server
open http://localhost:3000
Use npm startweixin
to run webpack watch.