LESS - Import Options
In this chapter, we will understand the importance of Import Options in LESS. LESS offers the @import statement that allows the style sheets to import both LESS and CSS style sheets.
The following tables lists the import directives that will be implemented in the import statements.
|Sr.No.||Import options & Description|
It uses a LESS file only as reference and will not output it.
It enables you to copy your CSS into the output without being processed.
It will treat the imported file as the regular LESS file, despite whatever may be the file extension.
It will treat the imported file as the regular CSS file, despite whatever may be the file extension.
It will import the file only one time.
It will import the file multiple times.
It continues compiling even though the file to import is not found.
More than one keyword is allowed to use in the @import statement, however you have to use commas to seperate the keywords.
For instance −
@import (less, optional) "custom.css";