1.1.2 • Published 4 years ago
homepage-web v1.1.2
Homepage Web
How to install
clone the repository, then use this command :
git submodule update --init --recursive
If not working, add every submodule with
git submodule add git@github.com:Schoolmouv-team/common-front.git front/src/common-front
then
git submodule add git@github.com:Schoolmouv-team/common-gateway.git gateway/src/common-gateway
Troubleshooting
Why can't I see the correct United bold font on Dev mode ?
As this micro-front is living on the subfolder (/homepage/) for prod purposes, it has effects on dev mode.
We had to preload the font in public/index.ssr.html
using a link with /homepage
Same in the fonts.styl
where we load the font with /homepage in the url
How can I use public assets in my code ? They don't display on test environment ?
You can use the mixin getPublicAsset(path)
, it is available in every component.
See an example in Footer.vue
.