Fix LessCSS include paths when packaging extensions.
Review Request #9524 — Created Jan. 23, 2018 and submitted
The switch to Babel broke packaging extensions that made use of LessCSS
include paths that didn't prefix included files with/static/
(which
basically means anything includingreviews.less
and some other files).
This was due to the include path generation code ensuring that each
staticfiles entry contained the parent directory of thestatic/
, which
isn't quite correct anymore.We now include the
static/
directory and its parent, ensuring that
both new-style includes and old-style ones will work properly during
packaging.
Built a package including
rb/css/pages/reviews.less
. Prior to this fix,
packaging failed. After, it succeeded, referencing the values used in
that file.