Closed MaxAlekseyev closed 2 years ago
Could you send some links to the files that confuses you? In this project we don't have any styles.scss
, there are just tools to compile it.
If you are referring to SASS version of Blank theme, and this line in styles.scss, the file to import is in the repository
Sure, I'm revising the project and wondering every day. Why there are this imports there? Why there no errors if the folders are absent? Absoltely strange to me situation. Thanks for you time!
Theme dirs structure and styles.less attached
Looks like you have a child theme, so tools handle the inheritance of files, that's how things in Magento are handled. The mechanism behind it is simple, it takes all files from the parent, unless file with exactly the same name exist in the child, so for compilation it's look like a homogenous entity.
If you are curious about implementation details, please check out helpers/inheritance-resolver.mjs
Meanwhile, I'm going to close this issue, since there is nothing to fix there. For the future, please use Discussions section, for this type of stuff.
Hello,
The project is new for me. Just researched styles.scss imports section, some paths are absent but now any compilation errors. How that can happened?
For example @import '../Magento_AdvancedCheckout/styles/module'; is absent in theme dir, no erro, but how did compiler fount this way?