You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 15, 2021. It is now read-only.
The documentation confirms that the compiler should behave in the way as you expected (see below).
I'm working on a second version of the LessCSS Compiler and this plugin. I'll verify if the problem exists on a new version. Please be aware that Extended LessCSS Compiler will be deprecated in the near future - which means LessCSS Maven Plugin 1.X also will be deprecated and replaced by version 2.X.
File Extensions @import statements may be treated differently by Less depending on the file extension:
If the file has a .css extension it will be treated as CSS and the @import statement left as-is (see the inline option below).
If it has any other extension it will be treated as Less and imported.
If it does not have an extension, .less will be appended and it will be included as a imported Less file.
Examples:
@import "foo"; // foo.less is imported
@import "foo.less"; // foo.less is imported
@import "foo.php"; // foo.php imported as a Less file
@import "foo.css"; // statement left in place, as-is
bad: I won't fix it in LessCSS Maven Plugin 1.X version. I'm working on a 2.X version which will use LessCSS Compiler 2.X. It means it should work correctly in 2.X.
@import "../../foo"
gives an error where@import "../../foo.less"
works:Some other Less Compiler Plugin handles this as I expected.
The text was updated successfully, but these errors were encountered: