Maybe this is stupid question but I'm really confuse. In the past, I usually setup nodejs express and angular2 separate into 2 folders, e.g: express will run on localhost:3000 (by nodemon) and angular2 in localhost:3001 (by webpack-dev-sever). Now, I want both of them can start at the same (e.g: localhost:3000) with only 1 command. I can't do that with webpack-dev-server, I use nodemon ("start": "webpack -d --progress --colors --watch & nodemon server.js") to do but I think this isn't good idea.
Can anybody advise the best way for this case?
via Phúc Hoàng Trương
No comments:
Post a Comment