-
Notifications
You must be signed in to change notification settings - Fork 47
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
@import search paths #181
Comments
There is not such direct option, but there is a solution. You can new LessSource type (maybe from FileSource) which would search for files in both current directory and in custom non-relative paths. Using custom less source: //create demo less file and compiler
File inputLessFile = createFile("sampleInput.less", "* { margin: 1 1 1 1; }");
LessCompiler compiler = new ThreadUnsafeLessCompiler();
//use custom less source
CompilationResult compilationResult = compiler.compile(new CustomFileSource(inputLessFile));
//print compiled css
System.out.println(compilationResult.getCss()); Either constructor or
Note: import-once feature uses |
Closing this as "answered". If you disagree, please re-open the issue again. |
Does less4j support adding non-relative search paths for import statements? For example, the less.js Node compiler "lessc" supports this with the --include-path option.
The text was updated successfully, but these errors were encountered: