Let's say I have my module which adds a slider to the homepage and there are many styles to define. I know I can add the styles in 2 different ways:
- Adding a css file MyBrand/MyModule/view/frontend/web/css/myfile.css
- Or adding a less file MyBrand/MyModule/view/frontend/web/css/source/_module.less
Is there a «more correct» way of adding my file? Should I priorize adding .css instead of .less, is there a specific good practice?
In the Magento docs I don't see any specific guideline regarding this.
Just a note: In my case I wanted to use the function .media-width, so I had to chosse using less.