-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with Chrome debugging in dev with webpack #520
Comments
I also faced issues while trying to debug in chrome with |
I found that I had to use |
I'm also experiencing this issue in Chrome using the default But why was this issue closed @LinusBorg ? This thread and the others referenced don't provide any solution, just alternatives that apparently slow down compilation. Or did I miss something? If changing the |
Basically, we can try and switch the template's default to something that seems to work at the time, but mostly it's trial and error for everyone because sourcemaps suck. |
@LinusBorg understood. Hopefully it'll get resolved upstream in webpack. Thanks for the reply! |
By default, the generated
webpack.dev.conf.js
setsdevtool: '#cheap-module-eval-source-map'
. This causes problems with Chrome debugging because of vuejs/vue-cli#51. Changingdevtool
in the generatedwebpack.dev.conf.js
to#source-map
solves the issue. Is there any way to control thedevtool
setting fromindex.js
? I see that for production webpack config it is set toconfig.build.productionSourceMap ? '#source-map' : false
.The text was updated successfully, but these errors were encountered: