SnowdogApps / magento2-frontools

Set of front-end tools for Magento 2 based on Gulp.js
MIT License
430 stars 142 forks source link

Not existent @import paths #446

Closed MaxAlekseyev closed 2 years ago

MaxAlekseyev commented 2 years ago

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?

Igloczek commented 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.

Igloczek commented 2 years ago

If you are referring to SASS version of Blank theme, and this line in styles.scss, the file to import is in the repository

MaxAlekseyev commented 2 years ago

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

theme_structure_and_styles.zip y

Igloczek commented 2 years ago

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.