From 123e51f4d537b516729aef4f04dca944efdbea1b Mon Sep 17 00:00:00 2001 From: Simon Lejeune Date: Mon, 6 Jun 2016 16:30:15 +0200 Subject: [REF] ir_qweb: less webasset: compress output instead of minifying it * Remove dependency on less-plugin-clean-css which distribution packages are broken on debian stretch and derivated. * Updated documentation. * Lessc provides a `--compress` argument that could solve this issue. According to the documentation at http://lesscss.org/usage/: "[...] Compress using less built-in compression. This does an okay job but does not utilise all the tricks of dedicated css compression[...]" However, using this argument works on lessc 2.5.3 but not on 1.4.2 (`--compress` arg is present but seems to be break some rules i haven't been able to put my finger on). * Finally, use the minification of the StylesheetAsset that takes care of removing the spaces, the comments and the sourcemap with regexes. fixes issue #9113 --- doc/setup/install.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'doc/setup') diff --git a/doc/setup/install.rst b/doc/setup/install.rst index e74ce8345cc..41a8d3e2e4a 100644 --- a/doc/setup/install.rst +++ b/doc/setup/install.rst @@ -462,25 +462,25 @@ Source installation requires manually installing dependencies: $ apt-get install -y npm $ sudo ln -s /usr/bin/nodejs /usr/bin/node - Once npm is installed, use it to install less and less-plugin-clean-css: + Once npm is installed, use it to install less: .. code-block:: console - $ sudo npm install -g less less-plugin-clean-css + $ sudo npm install -g less - on OS X, install nodejs via your preferred package manager (homebrew_, - macports_) then install less and less-plugin-clean-css: + macports_) then install less: .. code-block:: console - $ sudo npm install -g less less-plugin-clean-css + $ sudo npm install -g less - on Windows, `install nodejs `_, reboot (to - update the :envvar:`PATH`) and install less and less-plugin-clean-css: + update the :envvar:`PATH`) and install less: .. code-block:: ps1 - C:\> npm install -g less less-plugin-clean-css + C:\> npm install -g less Running Odoo ------------ -- cgit v1.2.3 From 972efbc0d11ab11cf2397e1a50b164833f562cee Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Singh Date: Tue, 14 Jun 2016 12:28:21 +0530 Subject: [FIX] doc: typo in install document Closes #12402 --- doc/setup/install.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/setup') diff --git a/doc/setup/install.rst b/doc/setup/install.rst index 41a8d3e2e4a..139cc244701 100644 --- a/doc/setup/install.rst +++ b/doc/setup/install.rst @@ -174,7 +174,7 @@ Or ``dpkg`` (handles less dependencies automatically): # apt-get install postgresql -y # dpkg -i # this probably fails with missing dependencies # apt-get install -f # should install the missing dependencies - # pdkg -i + # dpkg -i This will install Odoo as a service, create the necessary PostgreSQL_ user -- cgit v1.2.3