• [转] webpack debug in webstorm


    先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.
    screen shot 2015-10-23 at 16 58 54

  • 相关阅读:
    maven安装和四大特性
    rabbitMQ的安装和创建用户
    java小白之面向对象
    java初级笔记
    laravel 的升级
    prepare
    获取客户端真实IP
    apache nginx 区别
    七猫面试
    linux基本命令
  • 原文地址:https://www.cnblogs.com/qiangxia/p/5348143.html
Copyright © 2020-2023  润新知