Closed Triyugi closed 7 years ago
there are two different approaches to this:
Use proxy config in webpack in combination with webpack-dev-server
, which will put your development server between your client code and your express dev server (Requires firing up two dev processes)
Use webpack-dev-middleware directly in your express app (just fire up your express server as normal)
:)
@christianalfoni Thanks for replying. I am getting Uncaught SyntaxError: Unexpected token <
error in index_bundle.js
. I have a question here at stackoverflow.
This issue is resolved.
I have a well developed code base working with webpack. But now I want to insert express in it. I am trying to use this boilerplate but without success.
How can I configure express with my existing webpack? webpack.config.js is as follows: