[IMP] doc: setup lessc installation details
This commit is contained in:
parent
aeaf7ef914
commit
c8f07f2862
|
@ -315,13 +315,26 @@ Source installation requires manually installing dependencies:
|
||||||
|
|
||||||
* Less css compiler via nodejs
|
* Less css compiler via nodejs
|
||||||
|
|
||||||
- on Linux, use your distribution's package to install nodejs, then install
|
- on Linux, use your distribution's package to install nodejs and npm.
|
||||||
less and less-plugin-clean-css.
|
|
||||||
|
In debian you need at least jessie, as the packaged version of npm before
|
||||||
|
that does not work. In Ubuntu you need at least Ubuntu 14.04, as the
|
||||||
|
packaged version of npm before that does not work. Otherwise install nodejs
|
||||||
|
and npm manually.
|
||||||
|
|
||||||
|
Once you have npm working, install less and less-plugin-clean-css.
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ sudo npm install -g less less-plugin-clean-css
|
$ sudo npm install -g less less-plugin-clean-css
|
||||||
|
|
||||||
|
On debian and Ubuntu you also need to set a symbolic link from noejs to
|
||||||
|
node because the shebang line of lessc uses node.
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ sudo ln -s /usr/bin/nodejs /usr/bin/node
|
||||||
|
|
||||||
|
|
||||||
- on OS X, install nodejs via your preferred package manager (macports_,
|
- on OS X, install nodejs via your preferred package manager (macports_,
|
||||||
homebrew_) then install less and less-plugin-clean-css.
|
homebrew_) then install less and less-plugin-clean-css.
|
||||||
|
|
Loading…
Reference in New Issue