Impossible to edit styles in Chrome?

前端 未结 2 403
無奈伤痛
無奈伤痛 2020-12-28 13:49

Since I\'ve implemented server side rendering and managing the styles with styled-components, Im unable to edit styles in Chrome Dev Tools. The styles in devtoo

2条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-28 14:44

    I think you're probably seeing the styles injected via "speedy mode" in production. This uses a special DOM API that Chrome DevTools currently only shows in a read-only capacity. We haven't put in an escape hatch to disable this injection method yet, but it's being considered.

    When running your setup in development mode everything should be normally inspectable and editable.

提交回复
热议问题