码迷,mamicode.com
首页 > Web开发 > 详细

[转] webpack debug in webstorm

时间:2016-04-02 20:28:05      阅读:513      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!