F
F
Flying Seal2016-04-26 21:43:48
HTML
Flying Seal, 2016-04-26 21:43:48

How to run less file in Chrome?

I'm trying to open an html file with a link to less through sublime, it doesn't work, it says in the console:

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
less.js:13 XMLHttpRequest cannot load file:///...mixin.less. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.

On lesscss.org/usage/#programmatic-usage they write that the less.js script should be enough, in principle it is enough, but only if I open the html file through WbStorm, and I need it through Sublime. Sublime already has all possible plugins containing the word "less". What else is needed? Web server?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
maxxout, 2016-04-26
@maxxout

The question is not entirely clear. Do you need to open a page in a browser using less and have less compiled to css on the fly?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question