
1.首先要安装插件LiveReload Sublime text3。
github上的一个地址:ST3-LiveReload。 在里面download下来。
这个fork修正了原版配置不能保存的bug。不过说明文档里clone地址没有修改,所以不要直接按照说明文档安装。
安装方法:
cd ~/.config/sublime-text-3/Packages rm -rf LiveReload git clone https://github.com/Grafikart/ST3-LiveReload.git LiveReload
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/ rm -rf LiveReload git clone https://github.com/Grafikart/ST3-LiveReload.git LiveReload

直接把文件复制到sublime text3的插件文件夹,然后重启sublime text3。(我就是这样做的)
2.安装浏览器插件browser extensions
像我是chrome的,还要进行配置,在管理控制程序的地方如图打勾。

3、 在sublime text3 配置LiveReload。preferences -> Packge Settings -> LiveReload -> Settings - Default。
然后输入这些保存就好了。
{ "enabled_plugins": [ "SimpleReloadPlugin", "SimpleRefresh" ] }
【前端】Sublime text3 插件LiveReload 实现实时预览
原文:http://www.cnblogs.com/flipped/p/5224487.html