Open cintacks opened 8 years ago
The @import
s will only work from the top level file on purpose, but should certainly be able to go into deeper folders. For example:
/css
main.scss.liquid
/_partials
_file.scss.liquid
main.scss.liquid:
@import url('partials/_file.scss.liquid');
An @import
inside _file.scss.liquid
will not work.
Yeah that's what I'm saying - I did it exactly that way (I'm familiar with @import calls) but for some reason it won't compile anything in a subdir. It's weird because the regex seems right in the Gruntfile?
Right now I'll just work off the css root dir but I thought maybe I'm just crazy and wanted a second set of eyes if you ever had the time/inclination.
I can't seem to import files in first-level sub-directories either. I'm using Grunt FWIW.
Sorry noob question - when my file structure includes more than one level (e.g. css/partials/_file.scss.liquid) that file is not added when gulp is run. The @import url is correct and watch runs correctly but it doesn't update theme.scss.liquid in assets unless the source file is in the top level of /css
So my preferred file structure is this:
Rather than:
Any help would be greatly appreciated.