0.1.1 • Published 8 months ago

shopify-livereload v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

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-livereload

Usage

Starting the LiveReload Server

To start the LiveReload server, use the following command:

shopify livereload --watch /tmp/theme.update --delay 1600

Theme Development with LiveReload

Serve your theme and provide the --notify flag:

shopify theme dev --notify /tmp/theme.update

Install 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 Shopify

Development

For normal development, the initial setup is:

$ npm install
$ shopify plugins:link

License

Made with ❤️

Published under MIT License.

0.1.1

8 months ago

0.1.0

8 months ago