]> git.koha-community.org Git - koha.git/commit
Bug 35402: (follow-up) Use ~ to resolve to nearest node_modules when building css
authorPaul Derscheid <paul.derscheid@lmscloud.de>
Mon, 26 Aug 2024 11:31:46 +0000 (13:31 +0200)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Mon, 26 Aug 2024 15:39:54 +0000 (17:39 +0200)
commit7362dd444d667276c7d19c1aa61be5900bdcc08e
tree92de69e6b7ccc4a89ca85adc66e083d2c91f15d1
parentc2a905960124ad94235bf9972f908243e1788a84
Bug 35402: (follow-up) Use ~ to resolve to nearest node_modules when building css

- This patch adds a new dev dependency node-sass-tilde-importer.
- We use the tilde to resolve to the nearest node_moduldes, meaning
- /kohadevbox/koha/node_modules
or
- /kohadevbox/node_modules
- We explicitly prefix the last path component with an underscore to prevent the
  resolution from failing (this doesn't seem necessary for all cases, though)

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
gulpfile.js
koha-tmpl/intranet-tmpl/prog/css/src/installer.scss
koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss
koha-tmpl/opac-tmpl/bootstrap/css/src/_common.scss
package.json
yarn.lock