Adds hot reload to Shopify Theme Kit. Everytime a theme file is changed the browser window is automatically reloaded.
Requires Shopify Theme Kit!
- Add
hotreload.js
(link) to your Userscript manager of choice (Greasemonkey, Tampermonkey, etc.)
The file can also be embedded into your Theme's source code.
-
Download the GitHub repo
-
Unzip it and place it anywhere that's convenient.
-
Run
pip install -r requirements.txt
-
Run the server with
python server.py
- Add the notify property to themekit's
config.yml
file
notify: http://localhost:7438/notify
Example config.yml:
development:
password: password
theme_id: "123"
store: can-i-buy-a-feeling.myshopify.com
notify: http://localhost:7438/notify
- Run
theme watch
Now everytime a file is uploaded via themekit the browser should reload automatically!