Skip to content Skip to sidebar Skip to footer

How To Setup Less Using Only Js

I have an html like this all I have included all the files in to my folder. I tried to add some 'less' css attributes in to my main.css file but it is not reflecting in my browser

Solution 1:

You still can use less.js with local test files, see for example: less.js not working in chrome

In summary:

  • For Webkit-based browsers (Chrome, Safari, Opera15+) use -allow-file-access-from-files command line option
  • For Opera12 set "Allow File XMLHttpRequest" config flag
  • Firefox should work w/o any special settings.

Solution 2:

  1. Check it in latest browsers like IE10, Firefox,chrome etc., If it is still not working upload the file into the FTP server or configure the site in IIS server.

Post a Comment for "How To Setup Less Using Only Js"