How can I compile LESS files within browser

后端 未结 4 1789
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-10 13:41

I created code for switching themes using LESS functionality. Unfortunately the LESS files will not compile in browser. How can I compile LESS files within browser?

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-10 14:10

    Check your web server. Many servers are not initially set up to handle serving LESS files. Specifically newer versions of IIS tend to block serving *.less and need to be configured to do so. You can see if this is happening by loading your LESS CSS file directly from your browser. The easiest way to do that from Firefox is to view your page source and click the link to your LESS file.

提交回复
热议问题