For each component on my website, I have a separate LESS file where I import the necessary styles and controls. My goal is to compile the LESS file after it has been loaded.
Here is an example of how the HTML code looks:
<link rel="stylesheet/less" href="./signup/signup.less">
<div class="signup">
//content
</div>
<script type="module" src="./signup/signup.js"></script>
Despite loading the files, when I use the JavaScript line below, it never seems to work:
less.refreshStyles();
Can anyone provide assistance or guidance with this issue?