Netbeans 7.4 - exclude LESS partial source files from compiling to css

被刻印的时光 ゝ 提交于 2019-12-21 20:42:34

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/21779644/netbeans-7-4-exclude-less-partial-source-files-from-compiling-to-css

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!