Cài tiện ích mở rộng LiveReload trên chrome tự động reload trang khi chỉnh sửa code html, css, js... trên sublime text 3.
"How do I install LiveReload on Sublime Text 3"Bước 1:
Open package control (Shortcut : Ctrl+Shift+P) and search for Package Control: Add Repository
Bước 2:
Now comes a region to enter URL at bottom part of sublime text 3 window. Enter https://raw.github.com/Grafikart/ST3-LiveReload/master/package.json.
Bước 3:
Again, open package control and search for Package Control: Install Package and then search for LiveReload in the upcoming window.
Bước 4:
Configure LiveReload Package Setting at Preferences > Package Settings > LiveReload > Setting - Default and paste this :
{
"enabled_plugins": [
"SimpleReloadPlugin",
"SimpleRefresh"
]
}
Bước 5:
Now for your browser, install LiveReload plug in as below :
Firefox : http://download.livereload.com/2.1.0/LiveReload-2.1.0.xpi
Chrome : https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei
Safari : http://download.livereload.com/2.1.0/LiveReload-2.1.0.safariextz
Don't forget to enable the LiveReload plugin in the browser once you have installed it, so you can see the code changes reflected in the browser right away.
Note: Chrome users, for LiveReload to support file:// pages, go to chrome://extensions/, check off Allow in incognito and check off Allow access to file URLs.
Nguồn:stackoverflow
Không có nhận xét nào:
Đăng nhận xét