Create LESS source map files with WebEssentials

此生再无相见时 提交于 2020-01-04 02:56:07

问题


According to the WebEssential log LESS souerce maps are supported since Version 1.6 (January 2, 2014) for VS2013 (http://vswebessentials.com/changelog)

I have Version 1.9 for VS2013 installed. But source maps are not being generated. What am I missing?

Thanks!


回答1:


You need to activate the generation of map files in the Web Essential settings. Just open Tools > Options > Web Essentials > LESS in Visual Studio and set Create source map files to true.

In addition make sure the web server you are using delivers .less files on request. For IIS 7.0 you can do so by following the instructions at:

http://technet.microsoft.com/en-us/library/cc725608(v=ws.10).aspx

As mime type select text/css.



来源:https://stackoverflow.com/questions/22707968/create-less-source-map-files-with-webessentials

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