

“Way easier than the hassle with web servers and browser extensions” you might think, but not every project allows to insert something else unneeded to every single page. Insert it right before the closing tag and you’re all set. If your web site is running on another server, you need to specify the IP address of your local computer instead. It’s much simpler to set up, but has the disadvantage that you need to insert a small script into every HTML (or PHP or whatever) page of your project (which the browser plugin handles for you at the first method).

If all of that is much too complicated for you, there still remains the second way to use LiveReload which I promised above. What to type in at the Package Control command prompt. Now restart Sublime Text 2 once more and like at the native App you just need to enter the localhost URL from above into your browser, enable the LiveReload plugin by clicking on it and from now on every change of the files of your project are directly reflected in your browser without the need to reload. Then hit Enter, wait a few seconds to load, write “LiveReload”, select the appearing entry, hit “Enter” again and the plugin is installed.
#Livereload loading scss install#
The exact installation process can be found here.Īfter you have restarted the editor, hit CMD + Shift + P (CTRL + Shift + P for Windows) to open a Package Control prompt, type in “Install” and “Package Control: Install Package” should immediately be highlighted.
#Livereload loading scss code#
First you need to install the essential package manager Package Control, which just requires to enter some code into the console (“View > Show console” at the menubar of Sublime Text 2). Then you can restart your gulp watcher after fixing your errors.If you rather want to stay in your accustomed environment of your code editor – in this case Sublime Text 2, which I will use exemplary here -, the implementation is a little different. While you work, make sure to keep your "gulp" terminal running and visible, if your sass source is invalid, it will crash the watching gulp process, and you will want to see the error message that will output in that terminal. Once gulp sass and livereload are wired up correctly, commit your new files In order for the webpage to render and scale properly on mobile devices, add this meta tag to your public/index.html file in the the element


If you do not have npm or gulp installed globally, you need to install them. watch for any changes in the public directory, and trigger live-reloadįirst, make sure you have all the required dependencies.watch for any sass changes, then compiles sass source into css.This Gist goes over setting up a gulp workflow that will:
