Skip to content

Load custom less in a particular phtml file

I know that I can load a custom css in a particular phtml file using

<link rel="stylesheet" type="text/css" href="<?= $this->getViewFileUrl('Custom_Module::css/source/file.css')?>">

I want to know how can I do this but using a _file.less

Thanks!