Skip to content
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

开发环境应该是eval-source-map #3077

Closed
xiyoufang opened this issue Mar 24, 2020 · 3 comments
Closed

开发环境应该是eval-source-map #3077

xiyoufang opened this issue Mar 24, 2020 · 3 comments

Comments

@xiyoufang
Copy link

config => config.devtool('cheap-source-map')

https://webpack.js.org/configuration/devtool/#development
eval-source-map 保留了完整的调试信息。
cheap-source-map 只保留了行信息,并不是很适合开发环境。

@shenxiang11
Copy link

没错!!!
52k的项目了,难道是想鼓励 console 调试大法?

@PanJiaChen
Copy link
Owner

我思考了很久,也没想起来自己为啥要这么写

@PanJiaChen
Copy link
Owner

#3097

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

No branches or pull requests

3 participants