Coder Social home page Coder Social logo

webpack devtool debug 问题 about rekit HOT 4 CLOSED

supnate avatar supnate commented on July 28, 2024
webpack devtool debug 问题

from rekit.

Comments (4)

supnate avatar supnate commented on July 28, 2024

这必须已支持啊 😂 你可以确认下。在 Chrome 的 source tab 下,webpack:// . 路径下可以看到源码。你也可以在代码中插入 debugger 语句来加入断点。

from rekit.

asmh1989 avatar asmh1989 commented on July 28, 2024

@supnate 这个代码是生成过的不是源码

from rekit.

supnate avatar supnate commented on July 28, 2024

@asmh1989 哦,抱歉,理解错了。Rekit 现在使用的是 "eval" 级别的源码,这样开发时热更新速度比较快,所以看到的是 Babel 翻译过的代码,个人以为也可以理解并调试。如果习惯看原始的源码,可以在 webpack-config.js 文件中将 devtool: { dev: 'eval' } 改成 dev: 'source-map' 之类,这样就能看到严格的源码了。具体的参数含义可以参考:https://webpack.js.org/configuration/devtool/

from rekit.

asmh1989 avatar asmh1989 commented on July 28, 2024

@supnate 好的, 谢谢. 确实可以. 一开始我以为要和create-react-app 一样, 调试的代码在localhost://下.

from rekit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.