Skip to content
This repository was archived by the owner on Oct 2, 2020. It is now read-only.

Commit 09f4717

Browse files
committed
Update README.md
Added a second lessc usage example for when importing a css file directly from a npm dependency; e.g. in a gulp task. In this case a less import option is required to embed the css.
1 parent d491e5f commit 09f4717

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ In less file:
1919
@import "npm://packagename/path/to/file.less";
2020
```
2121

22+
or if importing a css file an [import option](http://lesscss.org/features/#import-options) is required:
23+
24+
```
25+
@import (less) "npm://packagename/path/to/file.css";
26+
```
27+
2228
css/less extensions not necessary
2329

2430
Options:

0 commit comments

Comments
 (0)