Update README.md

This commit is contained in:
Tben 2023-07-30 00:28:54 +01:00
parent f463aebd1f
commit 14f39c0986
2 changed files with 8 additions and 5 deletions

View File

@ -27,19 +27,19 @@ There are few different ways to run your less compiler
#### Basic usage
```bash
lessc-watcher --src ./folder --dst ./dist/less.css
npx lessc-watcher --src ./folder --dst ./dist/less.css
```
This traverses the folder and searches for a `main.less` file. This file serves as the source for your bundled `.css` file. If you want to target a specific file, use:
```bash
lessc-watcher --src ./folder/src.less --dst ./dist/less.css
npx lessc-watcher --src ./folder/src.less --dst ./dist/less.css
```
Or you can just watch an entire folder. In this case less-watch will searc for an entry file named `main.less`. Without this entry file, your compiler wouldn't work.
```bash
lessc-watcher --src ./folder --dst ./dist/less.css
npx lessc-watcher --src ./folder --dst ./dist/less.css
```
#### Adding more source folders
@ -47,7 +47,7 @@ lessc-watcher --src ./folder --dst ./dist/less.css
You can add more source folders by using a comma(`,`) separator. Example:
```bash
lessc-watcher --src ./folder-1,./folder-2 --dst ./dist/folder-1.css,./dist/folder-2.css
npx lessc-watcher --src ./folder-1,./folder-2 --dst ./dist/folder-1.css,./dist/folder-2.css
```
**_NOTE:_** Your `--dst` input must match the number of comma-separated folders in your `src` input.

View File

@ -1,8 +1,11 @@
{
"name": "lessc-watcher",
"version": "1.0.7",
"version": "1.0.8",
"description": "A minimal package to watch less files and compile them to css",
"main": "dist/index.js",
"bin": {
"lessc-watcher": "./dist/index.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/BenjaminToby/less-watcher.git"