Impossible to edit styles in Chrome?

前端 未结 2 384
無奈伤痛
無奈伤痛 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.

    0 讨论(0)
  • 2020-12-28 14:46

    You may also want to consider Firefox, it can edit such styles as usual

    0 讨论(0)
提交回复
热议问题