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

Commit e129def

Browse files
committed
Update README.md
1 parent f60d0f1 commit e129def

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,19 @@ less-plugin-npm-import
55

66
Adds the ability for less to import from npm packages
77

8-
1. Install with npm
9-
2. specify plugin in lessc with --npm-import
8+
## lessc usage
9+
10+
Install with npm
11+
12+
```bash
13+
npm install -g less-plugin-npm-import
14+
```
15+
16+
specify plugin in lessc with --npm-import
1017
No options. import with npm://packagename/path..
1118
css/less extensions not necessary
1219

13-
To use programatically, use something like this
20+
## Programmatic usage
1421

1522
```
1623
var npm-import-plugin = require("less-plugin-npm-import"),
@@ -19,6 +26,9 @@ less.render(css, options)
1926
.then(...
2027
```
2128

29+
## Browser usage
30+
31+
Browser usage is not supported.
2232

2333
Testing
2434
-------

0 commit comments

Comments
 (0)