add info in readme to remember install steps

This commit is contained in:
meaz 2023-03-07 21:29:56 +01:00
parent e555a90ab7
commit 6598873ea3
Signed by: meaz
GPG Key ID: CD7A47B2F1ED43B4
1 changed files with 10 additions and 0 deletions

View File

@ -30,6 +30,16 @@ INSTALLATION
All styles are written using LESS syntax. Thus it needs to be compiled
using the `lessc` (>= 2.5.2) command line tool. This comes with the `nodejs-less`
RPM package or using `npm install less` which depend on nodejs.
Here is how you can install those on Debian:
```
curl -sL https://deb.nodesource.com/setup_16.x | sudo bash -
apt-get install -y nodejs
npm install -g less
npm install -g less-plugin-clean-css
```
Then, go to the `styles` folder, and when you're done editing your files, do the following, as needed:
```
$ lessc --clean-css="--s1 --advanced" styles/styles.less > styles/styles.min.css
$ lessc --clean-css="--s1 --advanced" styles/print.less > styles/print.min.css