I do everything according to science - I download less.min.js from here lesscss.ru , put it in the project folder, connect it to the page as follows:
<link rel="stylesheet/less" href="./styles.less" type="text/less"> <script src="./less.min.js" type="text/javascript"></script> In styles.less, I have styles in less, in less.min.js, respectively, the script itself, but for some reason nothing connects. The browser writes the following error:
Failed to load file: /// C: /% D0% 9F% D0% BE% D1% 80% D1% 82% D1% 84% D0% BE% D0% BB% D0% B8% D0% BE / Site / public / styles.less: Cross-border requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.
The question is - what is the matter? Less valid in file, Winless verified.
file://...)? Raise the web server. Or see how people get chrome with the option--allow-file-access-from-files. When solve a problem, post the answer here. The problem is not in LESS, but in Chrome's security policy - Total Pusher