How can I disable CSS hot reload manually in CLI 3.x?

How can I disable CSS hot reload manually in CLI 3.x?

Ogdila
Shopify Partner
30 0 17

I'm using Shopify CLI  3.23.0

 

But I need to disable CSS hot reload manually in the hot-reload.js file. I don't want to "ignore" CSS files with the shopifyIgnore; I only don't want the browser to reload when I change a CSS. I know it's not ideal (and probably a technically incorrect approach).

 

So where is the hot-reload.js in CLI 3.X?

Replies 3 (3)

Ogdila
Shopify Partner
30 0 17

Anybody?

agssl
Shopify Partner
3 0 5

Hey, there are the dev-flags "ignore" and "only" for the CLI for themes (3.X).

 

This works for me:

shopify theme dev -x="*.css" -x="*.scss" -x="*.map"

 

system
Shopify Partner
4 0 2

 

shopify theme dev --live-reload=off