使用WebEssentials创建LESS源映射文件 [英] Create LESS source map files with WebEssentials

查看:87
本文介绍了使用WebEssentials创建LESS源映射文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据WebEssential日志,自VS2013的1.6版(2014年1月2日)开始支持LESS映射( http://vswebessentials.com/changelog )

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

我已安装VS2013的1.9版. 但是未生成源地图. 我想念什么?

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

谢谢!

推荐答案

您需要在Web Essential设置中激活地图文件的生成. 只需在Visual Studio中打开Tools> Options> Web Essentials> LESS并将Create source map files设置为true.

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.

此外,请确保您使用的Web服务器根据要求提供.less文件. 对于IIS 7.0,您可以按照以下说明进行操作:

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

作为哑剧类型,选择text/css.

这篇关于使用WebEssentials创建LESS源映射文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆