webpack-autoconf
webpack-autoconf copied to clipboard
Suggestion: How about adding express.js?
Usually we need a backend framework for reseving an api, how can this be added without creating two extra directories client
and server
with one starting script for convenience?
I have thought about adding support for express. But not sure what you mean by "without creating two extra directories client and server with one starting script for convenience". It's a common practice to have one client
and one server
dir because it's two different code bases. Could you describe more what you mean, or link to a boilerplate where your suggested practice is implemented?
I know this sounds bit weird, keep thing separated is definitely the best practice, just for the sake of simplicity sometimes we want to keep the focus on the client side when creating prototypes we used to put everything in app.js
(or server.js
) and running express.js on a different port (ex. 3000
). https://github.com/bitsnaps/webpack-course