Open morostr opened 8 years ago
I can confirm this behaviour. The only way to make sourcemaps work is to turn no "devtool": "source-map". None of the "cheap" methods except for "eval" seem to work.
[EDIT] 'cheap-source-map' seems to work as well.
Looks like the same issue as (or at least related to) #177 ?
I need to simulate a server in my project, and managed to piece together something that works using "Using nwb in Your Own Express Server via Middleware" (link is a bit wonky, you might not end up on the right chapter, but you are on the right page)
However, now source-maps won't work. At least every line of code can be found at (index):xxx according to chromes debugger. I'm guessing "nwb serve" is doing some magic, but I don't know what. I can only barely understand what I'm doing here as I'm new to both node, webpack, react and everything really.
I am starting the server with "node server.js".
package.json
relevant lines from server.js: