Skip to content

Use #cheap-module-eval-source-map for development #440

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

Merged
merged 1 commit into from
Feb 3, 2017

Conversation

CodinCat
Copy link
Contributor

The build speed of cheap-module-eval-source-map is faster than just eval-source-map, and it works very well in most scenarios.

Thus I'd recommend to use cheap-module-eval-source-map for development.

webpack docs: https://webpack.github.io/docs/configuration.html#devtool

@maxmilton
Copy link

maxmilton commented Jan 12, 2017

Seams to work as expected in my project setups :)

@myst729
Copy link
Contributor

myst729 commented Jan 13, 2017

I personally use #source-map. It's only slow at the initial build.

eval-source-map is fast (honestly I didn't feel it) but I found it cannot debug JS in *.vue via Chrome DevTools.

@yyx990803 yyx990803 merged commit e53a87c into vuejs-templates:master Feb 3, 2017
@mdartic
Copy link

mdartic commented May 15, 2017

I agree with @myst729, I use only #source-map, because it allows me to debug in Firefox.

Chrome seems working well with both eval-source-map and cheap-module-eval-source-map.

@yyx990803 could we imagine that in the cli there is a prompt to ask the user which strategy he wants to use ?

@myst729
Copy link
Contributor

myst729 commented Jul 1, 2017

@mdartic

Well, I don't think it's a good idea. The interactive wizard should focus the high level decisions. Let the detailed configurations stay in the files for manual adjustment. Otherwise the wizard will inevitably turn into a pain.

@mdartic
Copy link

mdartic commented Jul 3, 2017

Yep, I understand.

@yoyo837
Copy link

yoyo837 commented Jul 19, 2017

Please keep the following comments:cheap-module-eval-source-map is faster for development, but chrome doesn't stop at breakpoints.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants