0.1.1 • Published 2 years ago
shopify-livereload v0.1.1
Shopify LiveReload Plugin
The Shopify LiveReload Plugin is designed to enhance your development experience within the Shopify Theme Editor. It integrates seamlessly with the Shopify CLI, allowing you to reload the page automatically when file changes are detected.
Installation
shopify plugins:install shopify-livereloadUsage
Starting the LiveReload Server
To start the LiveReload server, use the following command:
shopify livereload --watch /tmp/theme.update --delay 1600Theme Development with LiveReload
Serve your theme and provide the --notify flag:
shopify theme dev --notify /tmp/theme.updateInstall LiveReload.js
Add the following code just before the closing </body> tag within your layout file. Alternatively, you can use
the LiveReload Chrome plugin.
<script src="http://localhost:35729/livereload.js"></script>Command
USAGE
$ shopify livereload --watch <value> [--port <value>] [--delay <value>]
FLAGS
--delay=<value> [default: 25] Delay in ms to wait before reloading.
--port=<value> [default: 35729] LiveReload port.
--watch=<value>... (required) Path to watch for changes (Multiple flags allowed).
DESCRIPTION
LiveReload plugin for ShopifyDevelopment
For normal development, the initial setup is:
$ npm install
$ shopify plugins:linkLicense
Made with ❤️
Published under MIT License.