G
G
Gagatyn2017-01-19 12:05:55
ruby
Gagatyn, 2017-01-19 12:05:55

How to auto refresh page when changing scss document?

There is sablime text, installed livereload on it

<script>
document.write('<script src="http://' +
(location.host || 'localhost').split(':')[0] +':35729/livereload.js?snipver=1"></' + 'script>')
</script>

auto update works (after saving the current document), but when working with sass the page does not update, you have to go to the html document and save it permanently after changing the .scss to update the page, which is very inconvenient. True, the page icon twitches, as if it wants to show, but cannot). How to do auto update? Explain in more detail.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Filippov, 2017-01-19
@Gagatyn

install browsersync and don't worry, no one embeds scripts in the document anymore. https://browsersync.io/

E
Egor Zhivagin, 2017-01-19
@Krasnodar_etc

Gulp is to help, and there are already browsersync and all sorts of autoprefixers ... Google incomprehensible words)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question