Member-only story

Complete guide to Shopify theme SCSS live reload

Tom Smykowski
2 min readFeb 10, 2022

--

Tiffany explains pretty well how to set up SCSS live reload. This article adds some information for you who struggle.

The idea for SCSS live reload is that you have to have an app, that will watch your SCSS files, and when one will change, it will process your project’s SCSS files generating new template.css file. And then theme-kit (when you configured it) will bring that file to the Shopify.

The applications also should reload your browser when something changes.

The app that does that is called Prepros.

To set it up:

  1. Install it
  2. Drop your project on the app
  3. Right click any liquid file and choose to watch all liquid files (it will reload the app for liquid changes)
  4. Locate your template.scss file (e.g. scss/templates/theme.scss). Click path in the “output file” and indicate a location “src\assets\theme.css”
  5. Start your theme-kit

What should happen is that after changing any of your scss files, Prepros will log that theme.scss file was processed to theme.css. A while after, theme-kit should tell you it synced it to the Shopify, and your browser should reload.

To set up the browser refresh you have to go Server icon in right top, click “External server”, choose “Use external server” and paste URL where you want to see changes. Then you can open the browser with CTRL+L.

--

--

Tom Smykowski
Tom Smykowski

Written by Tom Smykowski

🚀 Senior/Lead Frontend Engineer | Angular · Vue.js · React | Design Systems, UI/UX | Looking for a new project! 📩 contact@tomasz-smykowski.com

No responses yet