Changeset - a385bbbae672
[Not reviewed]
default
0 1 0
Mads Kiilerich (mads) - 8 years ago 2018-01-03 03:41:21
mads@kiilerich.com
less: run lessc with --relative-urls so relative paths are rewritten

25e079891ff5 broke select2 - it did for example no longer display the search
symbol in the input field. The css had a relative path to 'select2.png' which
no longer was correct when the literal reference moved to style.css .

Bootstrap had the same issue with '../fonts/glyphicons-halflings-regular.*' ...
but we do not rely much on that.

As a quick fix, just adjust the relative reference and keep pointing at the
original location.

A next step might be to copy files around in a cross platform compliant way,
reliably at the right point in the development/build/install process.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/public/less/package.json
Show inline comments
 
@@ -9,6 +9,6 @@
 
    "less-plugin-clean-css": "~1.5"
 
  },
 
  "scripts": {
 
    "less": "lessc main.less ../css/style.css"
 
    "less": "lessc --relative-urls main.less ../css/style.css"
 
  }
 
}
0 comments (0 inline, 0 general)