-
Notifications
You must be signed in to change notification settings - Fork 23
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
Using the less's @import statement #33
Comments
I can think of two potential issues:
Hope this helps, Dave |
Ok, adding the |
We should definitely support missing filename extensions. Am I right in @import-once syntax is a new addition to LESS. I totally agree with you Reasoning follows:
SBT-LESS scans the dependencies in your LESS files in Scala. It templates There is a case to be made that we should support the proper behaviour of Dave On 24 July 2013 22:51, mdedetrich [email protected] wrote:
|
I'm not sure if thats right in how less is technically defined, but its definitely the most practical way to implement it in my opinion
I actually noticed this myself. I used
Yup, and due to this I stopped using less entirely. I used Play 2.0 (which had its own less processor), and that version didn't have
I also assumed it was a bug, and then I read the less mailing lists (at the time), and I read that the behavior was intentional. It is literally an "include" in every sense of the word, it places the code.
Yup, and this does sound like it would complicate matters
Personally, I think it should so its consistent with how LESS is meant to work. I wouldn't put it at complete top priority, but it it something that should be done. I was about to move off Scalatra (and SBT-LESS) because |
@import (inline) "foo.css"; I'll look at this for a milestone release of 0.7. |
I am not sure if I am doing something ridiculously stupid, but it appears that less's
@import
and@import-once
statements are not working with version 0.5 of sbt-less pluginAssuming I have a flat directory called less with my build.sbt looking as follows
Assuming I have 2 files within the less folder, a.less and b.less, if a.less simply contains the following
It fails with
could not unshadow /Users/mdedetrich/scala/test/src/main/less/b
Using
@import-once
instead of@import
I getJavaException: java.io.FileNotFoundException: /Users/mdedetrich/scala/test/b.less (No such file or directory)
Obviously the files compile fine if there is no
@import
or@import-once
The text was updated successfully, but these errors were encountered: