how to setup less using only js

后端 未结 2 1447
死守一世寂寞
死守一世寂寞 2020-12-04 03:46

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 m

2条回答
  •  误落风尘
    2020-12-04 04:12

    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.

提交回复
热议问题