gpt4 book ai didi

css - 保存以下划线开头的 LESS 文件不会在 Web Essentials 2013 中生成 css

转载 作者:太空宇宙 更新时间:2023-11-04 03:15:51 25 4
gpt4 key购买 nike

我在 visual Studio 2013 中使用 Web Essentials 2013 Update 4,通常我可以创建一个扩展名为 .less 的文件并保存它并按预期生成 .css。但是,如果文件名以下划线开头,例如"_Layout.less"则不会生成 .css(尽管编译后的形式显示在预览窗口中)。

有没有办法让它工作?

最佳答案

看起来这是设计使然,来自 here :

I break out my LESS files into different nested files and import them all. As they are nested, there's no need to compile them when changed. I'd love to have the ability to flag a file to not be compiled, similar to how you can flag a CSS file to be minimized.

A convention-based approach used by SASS is to prefix the file with an underscore, so _sub.scss wouldn't be compiled and main.scss would. While not a LESS convention (I don't think there is one), this would be an awesome convention to adopt.

关于css - 保存以下划线开头的 LESS 文件不会在 Web Essentials 2013 中生成 css,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28722886/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com