Posted on 28/01/2019 16:25:23
Hi Adrian
We use VSCode with the "FTP-Simple" extension to connect to the server, and "LESS intellisense" extension to handle the LESS stuff in VSCode
The MimeType on the server has be the type txtx/css (Claus in the Dynamicweb Support helped set this up on the solution for us)
In the head of our Master template, we have this:
<link rel="stylesheet/less" type="text/css" href="css/styles.less" />
<script>
less = {
env: "development",
useFileCache: false,
};
</script>
<script src="//cdnjs.cloudflare.com/ajax/libs/less.js/3.9.0/less.min.js" ></script>
Seems to work flawlessly (if there are no CSS errors). Eg a misspelling like "!impotrant" will make it fault, but then again - that helps make sure the final CSS is "pure".
Feel free to ask, if there are any Questions.
/Hans