emmetio / livestyle-sublime-old

Live bi-directional CSS edit of new generation
http://livestyle.emmet.io
260 stars 23 forks source link

[Feature] Make it work when DevTools are closed #68

Closed franciscolourenco closed 11 years ago

franciscolourenco commented 11 years ago

Is Live Style supposed to work when DevTools inspector is not open?


EDIT:

This issue is a request for the implementation of functionality which allows LiveStyle to be applied to the page when editing code in Sublime even when DevTools inspector window is closed.

If LiveStyle needs to be manually activated in Chrome, perhaps a button in the tool bar could be used for convenience (like the one the LiveReload extension)

Thanks

sdsanders commented 11 years ago

From the LiveStyle docs:

Important: you must keep DevTools opened during live edit session and for every window (in multi-view mode). You don’t have to be on LiveStyle panel all the time but DevTools must remain opened. Otherwise, incoming updates won’t be applied.

sergeche commented 11 years ago

LiveStyle uses Chrome DevTools API to update CSS and this API is available only when DevTools are opened: http://developer.chrome.com/extensions/devtools.html

So you should ask Google about it.

franciscolourenco commented 11 years ago

The weak heel of LiveStyle

sergeche commented 11 years ago

I don’t think so. It’s not a problem to open DevTools panel for window just once (almost the same as pushing a button).

franciscolourenco commented 11 years ago

The problem isn't opening, is the space is takes space on the screen. (at leas at 13inch this is an issue) One could detach the devtools into a separate window, but then one has to manage those loose detached windows which stay in the background, and switch those detached widows back to panels again for normal use. It's not very practical