]> git.koha-community.org Git - koha.git/commit
Bug 27072: Don't process staff interface CSS with rtlcss
authorOwen Leonard <oleonard@myacpl.org>
Mon, 23 Nov 2020 14:15:14 +0000 (14:15 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 24 Nov 2020 20:27:59 +0000 (21:27 +0100)
commit7a10caccf80c2097305031325a4ee5de889adeec
tree5406c82b056cb2bdbadb07b38f2986ccbdbb2acd
parenta59fe6505407ed1704cc7b162a19adfe2ae6261c
Bug 27072: Don't process staff interface CSS with rtlcss

This patch changes Koha's gulpfile to add a check for the "OPAC" context
before using rtlcss to automatically build right-to-left versions of
CSS.

To test, apply the patch and test the process of building CSS for both
the OPAC and staff client:

- "yarn css --view opac" : This should build unminified CSS for the
    OPAC, including map files in bootstrap/css/maps

- "yarn build --view opac" : This should build minified CSS for the
  OPAC and generate the RTL versions.

- "yarn css" : This should build unminified CSS for the staff
  interface, including map files in prog/css/maps.

- "yarn build" : This should build minified CSS for the
   staff interface, with no creation of RTL versions.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
gulpfile.js