Closed binarytrance closed 5 years ago
Hey @binarytrance -- if you are using the .scss.liquid
extension, the styles are compiled on Shopify servers since we can't compile liquid files locally. Basically, shopify servers compile scss.liquid
to .scss
and then to .css
-- this is why things don't look compiled when you build locally.
If you wish compile locally (and we encourage you to do so), use .scss
files. Please rease the Styles with Liquid for all the info you should need.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Problem
I am just getting started with Shopify/Slate so i would do my best to explain my problem. Please do ask if you need any specific information with regards to the description or the replication of my problem. Now,
Uncompiled variables: I am trying to declare SASS variables in the file called
variables.scss.liquid
but its not getting compiled to valid css values. For example, if i have a variable called$black: #333
in the aforementioned file and i use it in my scss files ascolor: $black
; the dev tools, after compiling showscolor: $black
instead ofcolor: #333
. I have the variables.scss.liquid file imported into the theme.scss file like so:@import url('settings/variables.scss.liquid');
and i have included the theme.scss file in mytheme.liquid
file like so{{ 'theme.scss' | asset_url | stylesheet_tag }}
Uncompiled media queries:
in the console, the above code shows up like so:
I am running the regular slate commands in vscode terminal:
slate watch
,slate start
.Any help will be much appreciated.