An open API service indexing awesome lists of open source software.

https://github.com/montalvomiguelo/shopify-livereload

LiveReload plugin for Shopify CLI
https://github.com/montalvomiguelo/shopify-livereload

cli livereload oclif shopify shopify-themes

Last synced: about 2 months ago
JSON representation

LiveReload plugin for Shopify CLI

Awesome Lists containing this project

README

        

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](https://shopify.dev/docs/themes/tools/cli), allowing you to reload the page automatically when file changes are detected.

![pika-1694794115083-1x](https://github.com/montalvomiguelo/shopify-livereload/assets/5134470/e16bdcff-e292-43ac-85d4-7e808911997d)

## Installation

```bash
shopify plugins:install shopify-livereload
```

## Usage

### Starting the LiveReload Server

To start the LiveReload server, use the following command:

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

### Theme Development with LiveReload

Serve your theme and provide the `--notify` flag:

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

### Install LiveReload.js

Add the following code just before the closing `