MENU
import
You may @import an external Less file to include it. Some options may be specified along.Options:
| reference | use a Less file but do not output it |
| inline | include the source file in the output but do not process it |
| less | treat the file as a Less file, no matter what the file extension |
| css | treat the file as a CSS file, no matter what the file extension |
| once | import the file only once and subsequent import statements for that file will be ignored |
| multiple | allow importing of multiple files with the same name |
| optional | continue compiling when the file is not found |
If the imported file does not have a .css extension, it will be treated as a Less file.
@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
@import (multiple, optional, reference) "bar.less";