首页 > Web开发 > 详细

[转] webpack debug in webstorm

时间:2016-04-02 20:27:32      阅读:502      评论:0      收藏:0      [点我收藏+]

先run build,然后用node server.js来做

WebStorm 11 adds support for debugging client-side apps built with Webpack, though you need to configure the mappings as described in this blog post.
First, in tools/config.js change  devtool: DEBUG ? ‘cheap-module-eval-source-map‘ : false, to devtool: DEBUG ? ‘source-map‘ : false,
Then build the app and run server.js from the command line or using Node.js run configuration.
Exclude build directory from the project.
Then create new JavaScript debug configuration for the URL http://localhost:5000
In the run configuration map build/public to http://localhost:5000 and project root to webpack:///.
Now you can put breakpoints in the original files in src folder and start JavaScript debug session.
技术分享

[转] webpack debug in webstorm

原文:http://www.cnblogs.com/qiangxia/p/5348143.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!