I want to edit my sass file from Chrome dev tool from element tab, is that possible?

喜你入骨 提交于 2019-12-02 10:28:07

This is currently an experimental feature. It is hidden behind flags since it could be unstable and break things. If you'd like to try it now then do the following:

  1. Go to chrome://flags/#enable-devtools-experiments in your omnibar
  2. Enable the flag for Experimental DevTools Features
  3. Restart the browser
  4. Open DevTools and go to the Settings then a new Experiments tab on the left is available
  5. In the experiments tab, turn on the Live SASS option
  6. Restart DevTools

You should now have changes in the Elements panel persist into your Sass as long as it is properly source-mapped.

Paul Irish covered this feature (among others) in his portion of the I/O 2016 talk about Accelerating Your Workflow.

I don't believe what you want is possible. You might want to look at options like LiveReload for this behaviour. You could change the code in IDE, compile, and livereload will detect your changes to the compiled .css file on the filesystem and reload it in your browser.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!