-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lessc *.less
overwrites the second Less file with CSS output
#2660
Comments
See for example #1631. I.e. the value of such behaviour in context of CSS compiling is actually questionable. (like "why would I have several interdependent Less files wallowed in the same dir at all?". More over the behaviour of "*.less" is about to be ambiguous - you expect it to compile to independent css, someone else would wait for a single output etc.). In Less they do not implement something "just because it possible to implement", so args like "tool X does it" are generally useless. An example use-case of where the proposed feature would be important is usually required. (At least to illustrate it's a common expectation and not a rare specific task you can easily handle with your own 5 lines script on top of the Less library or I'm not closing this (as duplicated of #1631) because this can be also considered as bug report for
(which is sort of expected since Also see #1181. |
I am interested is this too, not in the sense that multiple |
@tech4him1 Just use either of the dedicated node build environments (e.g. |
lessc *.less
overwrites the second Less file with CSS output
I wouldn't say that. I've worked on dozens of such projects in the past. And I wouldn't call All that said... I don't disagree at all that it's not the best tool to use, because eventually you'll want something maintainable, which is something where you can set up compilation once and forget about it, as opposed to typing in command-line commands every time. But that's just me. Some developers are very comfortable with command-line tools, and even But for all the same reasons @seven-phases-max articulated about other tools being available, I'm not sure lessc needs to change, except for the fact that it seems to take wildcards as input, but then produces unexpected output. So if it's already taking wildcards as input, it seems reasonable to compile appropriately-named output. |
That was exactly my thought. Simple builds can use |
If #1893 was done, I wouldn't worry about this so much, but as it stands, it is hard to compile multiple |
Either way, personally I believe it all ("a cli-tool with bells and whistles") is anyway best to be made as a separate project (this repo is already overloaded with things - considering a number of active contributors - by now they're literally just 1 (one!)).
I did not say it is. It was "more like a" :). Regardless of what it could be or we'd like it to be it's really nothing but a minimal(istic) command-line-to-API translator. |
Yes, how do we change this? lol
Fair enough. It can still be minimalistic.
Yeah, I'm thinking of taking Rhino out for 3.0, because I have no clue about Rhino usage and we don't have any active maintainers that know anything about it, so there's no good way to update it to 3.0 changes. But that's a side conversation for some other thread. |
Btw...
Not necessarily. You can write a simple bash script that, when passed in a list of files, runs lessc for every file, like:
|
Remaking this into a feature request:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
#2660 (comment) is still valid, please re-open. |
@tech4him1 Re-opened and marked as ready for PR. |
I'm trying to use npm scripts instead of grunt and have found that lessc, surprisingly, doesn't supports wildcards in its CLI usage.
With stylus I could do
and it would compile each
.styl
file to a.css
file with the same name.performs silently but in actuality will obliterate the second file that it globs with the output from compiling the first. All other
*.less
files will be ignored.The text was updated successfully, but these errors were encountered: