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

dva启动后sourcemap调试问题 #52

Closed
carlos121493 opened this issue Aug 29, 2016 · 1 comment
Closed

dva启动后sourcemap调试问题 #52

carlos121493 opened this issue Aug 29, 2016 · 1 comment

Comments

@carlos121493
Copy link
Contributor

用dora起服务,webpack插件调试dva的时候总是这样


是不是哪里不对

dora -p 8030 --plugins webpack
  • "dora": "0.3.x",
  • "dora-plugin-webpack": "0.6.x",
  • "babel-plugin-transform-runtime": "^6.8.0",
  • "dva": "0.0.16",
    • 浏览器版本50+
@sorrycc
Copy link
Member

sorrycc commented Aug 29, 2016

我也遇到了,修改 webpack.config.js,把 devtool 换成 #eval

module.exports = function(webpackConfig, env) {
+  if (env === 'development') {
+    webpackConfig.devtool = '#eval';
+  }
};

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

2 participants