Using the command line program lessc installed by following this guide on a Ubuntu machine, don’t seem to compile @import rules as I expected.
$ echo '@import "inc.less"' > test.less
$ echo 'body { background: pink }' > inc.less
$ lessc test.less
The output is an empty line. I expected the contents of inc.less. Am I doing something wrong here?
Try
@import "inc";Don’t use the
.lessextension. I also think you need a semicolon.For example, here’s a couple of lines that are working for me:
That imports blueprint/screen.less and blueprint/ie.less into the file.