example MFE application does not load styles from index.scss

Aperta
#441 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@Syed-Ali-Abbas-Zaidi ci sta già lavorando.

Dal 28/3/2023.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

awaiting prioritization

Description

The example app within this repo is defined in the example folder. It acts as an example micro-frontend (MFE). The entry point for the example app (i.e., example/index.jsx) imports a index.scss file. This SCSS file currently imports SCSS from @edx/paragon and @edx/brand.

However, when running the example app on master (i.e., npm start runs app on localhost:8080), no styles are applied to the MFE in the browser:

image

Even adding the following to example/index.scss produces no results, even though it does seem to trigger a hot reload of the application:

body { background-color: red !important; }

Other MFEs (e.g., frontend-app-profile) injects inline <style> tags into the HTML <head> for the styles defined in the MFE:

image

Whereas the example MFE in this repo does not. It only includes the JS bundle and no inline <style> tags.

image

Impacts

The impact of this issue is that it's not possible to run the example app properly to QA styles when testing a new approach for loading external theme CSS.

Lingua principale
JavaScript
Stelle
38
Fork
90
Merge medio
3m
PR unite (30g)
4

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di openedx/frontend-platform

Tutte le issue di openedx/frontend-platform

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.