Dawn theme: Liquid variables preventing Grunt from converting scss to css.liquid file

Jaison_Manithar
New Member
2 0 0

So i am using the latest Dawn theme. I use grunt (Sass) to convert my scss files to css.liquid. Below is the rule in grunt for Sass highlighted with red.

 

Jaison_Manithar_0-1636996074224.png

 

However the SCSS file here contains css variables which resolve through liquid variables. These liquid variables are defined in the theme.liquid within the css pseudo :root element.

Below is the SCSS file:

Jaison_Manithar_1-1636996216629.png

 

And below is the theme.liquid with the liquid variables:

Jaison_Manithar_2-1636996271424.png



Problem: The issue is every time the grunt rule for converting this SCSS file to css.liquid is run, it fails since it cannot process the liquid variables present in the theme.liquid.

Is there any way to be able to process these liquid tags using grunt and the SASS. 

 

Replies 0 (0)