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?
Theview/{area}/web/css/source/main.lessfile is the default less file that is included by default. This file contains the main styles for the module.
In a custom module in Adobe Commerce, the default location for including custom LESS styles is typicallyview/{area}/web/css/source/_module.less. However, the most commonly used file for adding global styles isview/{area}/web/css/source/_extend.less. Theview/{area}/web/css/style.lessfile is not standard, and themain.lessfile is used as an entry point for compilation but typically does not contain custom styles directly.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit