I used webpack-dev-middleware
and webpack-hot-middleware
before to run an express server in development. This approach can run a development environment without using webpack dev server
. Webpack handles the bundling and express handles the server logic and static files.
Now I want to use vanilla node.js server because express setup is not fast enough for my app. And I want to use webpack with my new setup. But I wonder if I can use the previous two middlewares in my new setup? If I can that would be perfect. But if I can't what is the best approach for me? I have read something like starting two servers. One for webpack-dev-server and the other running node.js server. I think this approach is complicated and make me confused in development. Is there any better way?
via newguy
No comments:
Post a Comment