Can't get less.js to work

一个人想着一个人 提交于 2019-11-28 09:45:45

P.S.S. Less.js browser script currently won’t work if you’re using Chrome and the path to your page starts with “file:///” due to a known Chrome issue.

But what we could do is setting up a local testing environment using wamp (pc) or mamap (mac). It will work alright then.

You can use the command-line switch -allow-file-access-from-files when starting chrome - it will permit less.js to access local less files.

Even though this was posted a while ago I thought I would add a little something for other people stuck on this.

If you use a windows machine, you might want to give WinLess a try. Its a pre-compiler for windows. Seems straight forward to use. Good luck. http://winless.org/

Need to add

type="text/css"

to your css link.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!