在 VS <= 2015 中,我们可以使用 WebEssentials 扩展来为我们编译 less/sass 文件,但目前它不支持 VS 2017.是否有类似的扩展可以在构建时编译 Less/Sass?
In VS <= 2015 we can use a WebEssentials extension that takes care for compiling the less/sass files for us, but currently it does not support VS 2017. Is there a similar extension that can compile Less/Sass on build?
WebEssentials 被拆分为多个扩展.我相信您想要的功能现在在 Web Compiler 扩展中.
WebEssentials is being split up into multiple extensions. I believe the functionality you want is now in the Web Compiler extension.
如果您想在没有扩展的情况下执行此操作,则可以使用 Gulp 之类的任务运行器.请参阅此处了解如何集成将任务吞入 VS.
If you want to do it without extensions, you could use a task runner like Gulp. See here for a walkthrough of how to integrate Gulp tasks into VS.
这篇关于如何在 Visual Studio 2017+ 中编译 Less/Sass 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
CSS:分页后重复表头(打印视图)CSS: Repeat Table Header after Page Break (Print View)(CSS:分页后重复表头(打印视图))
标题宽度(H1、H2 等)Width of Headers (H1, H2 etc)(标题宽度(H1、H2 等))
IE8 中具有 100% 内容高度的页眉/页脚布局Header/Footer Layout with 100% Content Height in IE8(IE8 中具有 100% 内容高度的页眉/页脚布局)
标题 div 保持在顶部,垂直滚动 div 下方,滚动条Header div stays at top, vertical scrolling div below with scrollbar only attached to that div(标题 div 保持在顶部,垂直滚动 div 下方,滚
标题消息就像在 Stack Overflow 上一样Header message just like at Stack Overflow(标题消息就像在 Stack Overflow 上一样)
创建可变高度“固定"带有可滚动内容的 CSSCreating a variable height quot;fixedquot; header in CSS with scrollable content(创建可变高度“固定带有可滚动内容的 CSS 标头)