Closed alejandronanez closed 8 years ago
devtool
should be at the root level of configuration. Try something like this:
const config = {
devtool: 'eval-source-map',
devServer: {...},
plugins: [...]
};
...
I hope this helps!
Sweet @bebraw. Silly mistake from my side.
Thanks!!!
Great book BTW.
No probs. I have a little plan on how to improve the ux of webpack to avoid these kind of issues. But we'll see. :smile:
Hi there, I'm having issues generating my sourcemaps. I followed the instructions on the book and followed the documentation on webpack's site and I can't make them to work.
I do have sourcemaps enabled on my browser (Chrome).
For example if I console.log a message and I inspect it on the dev tools I got something like:
Also here's my
webpack.config.js
Basically I'm getting the same result with/without the
devtool
option.Thanks.