Netbeans 7.4 - 将部分源文件从编译到css中排除 [英] Netbeans 7.4 - exclude LESS partial source files from compiling to css

查看:202
本文介绍了Netbeans 7.4 - 将部分源文件从编译到css中排除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这主要是一个讨厌的问题(在我的css目录中创建混乱)。我想知道,在Netbeans 7.4(或8.0 beta?)中,是否有任何方式标记LESS文件,以便在运行/保存时不编译。



I有一个library.less和vars.less文件,它们是.mixins和@variables,可以在其他几个较少的文件中使用,但不需要自己编译,因为它们会有效地清空CSS。



如果可能的话,我希望Netbeans或lessc.cmd忽略它们。是否可以这样做? 根据 test suite ,编辑并保存一个局部变量应该用@include触发一个父文件的重新编译,但是它没有提到任何有关排除局部变量的内容从预处理。我的经验与您的相似。



这里有一个关于这个功能的bug报告:

令人讨厌的是,该功能在2013年12月被请求,8.0在2014年3月发布。


This is mostly a nuisance problem (creating clutter in my css directory). I want to know if, in Netbeans 7.4 (or 8.0 beta?), there is any way to tag a LESS file to no be compiled on run/save.

I have a library.less and vars.less file that are .mixins and @variables that get used site-wide in several other less files as includes but don't need to be compiled themselves as they produce effectively empty CSS.

I'd like Netbeans OR lessc.cmd to ignore them if possible. Is it something that can be done?

解决方案

According to the test suite, editing and saving a partial should trigger a recompile for the parent file with the @include, but it doesn't say anything about excluding the partial itself from preprocessing. My experience is similar to yours.

There's a bug report for the feature here: https://netbeans.org/bugzilla/show_bug.cgi?id=239593

Annoying because the feature was requested back in December 2013, and 8.0 was released in March 2014.

这篇关于Netbeans 7.4 - 将部分源文件从编译到css中排除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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