Create LESS source map files with WebEssentials

2019-07-07 09:11发布

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!

less compilation result

1条回答
女痞
2楼-- · 2019-07-07 09:52

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.

查看更多
登录 后发表回答