A new custom module is built for the existing Adobe Commerce store. A merchant has requested a few frontend updates. For this, a developer has to implement a custom style. What is the location of the less file that will be included by default?
The correct answer is:
C. view/{area}/web/css/source/_module.less
Explanation:
When creating a custom module in Adobe Commerce and implementing custom styles, the LESS files should be placed in the view/{area}/web/css/source/ directory. The _module.less file is a convention used for defining module-specific styles in the source directory before they are compiled.
view/{area}/web/css/source/_module.less is the location where module-specific styles can be placed. The underscore (_) at the beginning of the file indicates that it's a partial file which will be included in the final compiled CSS.
To summarize:
view/{area}/web/css/source/_module.less is the default location for LESS files in custom modules to implement custom frontend styles.
The correct location of the LESS file that will be included by default in a custom module for frontend styling in Adobe Commerce is:
B. view/{area}/web/css/source/main.less
Explanation:
In Adobe Commerce, when implementing custom styles for the frontend, the LESS file is typically placed under the view/{area}/web/css/source/ directory, and the file name is usually main.less. This is where the custom styles are defined for the module.
view/{area}/web/css/source/main.less: This is the correct location and file name for the main LESS file that is compiled into the final CSS.
view/{area}/web/css/style.less: This location and file name are not typically used in the standard Magento module structure.
view/{area}/web/css/source/_module.less: This location could be used for specific module-level styles, but main.less is the more common entry point for compiling and including custom styles.
In summary, for a custom module in Adobe Commerce, main.less is usually the file where you define your styles, located in view/{area}/web/css/source/.
upvoted 1 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
crino
1 month, 2 weeks agocrino
1 month, 2 weeks ago