Import JiHu svgs vendor when in JH edition
What does this MR do and why?
Considering there will be JH specific svg files, JH is going to publish @jihulab/svgs
and use in code in /jh
folder, check details why and how we do this in https://gitlab.com/gitlab-jh/gitlab-jh-enablement/-/issues/170. In order to make the package work in rails, we need to add module path to Rails assets path, and precompile the JH specific svg files.
/cc @daveliu
Screenshots or screen recordings
How to set up and validate locally
- create
node_modules/@jihulab/svgs/dist/illustrations/jh/test.svg
- start rails
- use the file added
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Kun Qian