-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kompilert css i pakkene #2422
Kompilert css i pakkene #2422
Conversation
Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-beach-0d62d0d03-2422.westeurope.2.azurestaticapps.net |
@@ -0,0 +1,112 @@ | |||
:root, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
css filerna burde vell ikke sjekkes in ? DOm burde bli generert vid bygg akkurat som javascripten
Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-beach-0d62d0d03-2422.westeurope.2.azurestaticapps.net |
1 similar comment
Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-beach-0d62d0d03-2422.westeurope.2.azurestaticapps.net |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-beach-0d62d0d03-2422.westeurope.2.azurestaticapps.net |
chore(ffe-accordion): gitignore og bygg av css
…less chore(ffe-account-selector-react): gitignore og bygg av css chore(ffe-account-selector-react): css i bygg
chore(ffe-buttons): gitignore og bygg av css
chore(ffe-cards): gitignore og bygg av css
chore(ffe-chart-donut-react): gitignore og bygg av css chore(ffe-chart-donut-react): css i bygg
chore(ffe-chips): gitignore og bygg av css
chore(ffe-collapse-react): gitignore og bygg av css chore(ffe-collapse-react): css i bygg
chore(ffe-core): gitignore og bygg av css chore(ffe-core): gitignore og bygg av css chore(ffe-core): css i bygg chore(ffe-core): fjerner css som skal genereres ved bygg
chore(ffe-datepicker): gitignore og bygg av css
chore(ffe-feedback): gitignore og bygg av css
chore(ffe-file-upload): gitignore og bygg av css
chore(ffe-form): gitignore og bygg av css
chore(ffe-grid): gitignore og bygg av css
chore(ffe-icons): gitignore og bygg av css chore(ffe-icons): css i bygg
chore(ffe-lists): gitignore og bygg av css
chore(ffe-messages): gitignore og bygg av css
chore(ffe-modals): gitignore og bygg av css
chore(ffe-pagination): gitignore og bygg av css
…il less chore(ffe-searchable-dropdown-react): gitignore og bygg av css chore(ffe-searchable-dropdown-react): css i bygg chore(ffe-searchable-dropdown-react): fjerner css som skal genereres ved bygg
chore(ffe-spinner): gitignore og bygg av css
chore(ffe-tables): gitignore og bygg av css
chore(ffe-tabs): gitignore og bygg av css
97eb526
to
683c66c
Compare
Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-beach-0d62d0d03-2422.westeurope.2.azurestaticapps.net |
Beskrivelse
Legger til et script i package.json som kompilerer CSS fra Less-filene under bygg og dermed gjør det mulig å bruke komponentene uten å dra inn Less.
For å få dette til er det nødvendig å importere Less fra andre filer i noen tilfeller, blant annet der vi bruker breakpoint-variablene (
@breakpoint-xx
), ettersom CSS-variabler foreløpig ikke kan brukes i media queries.(reference)
innebærer at den importerte fila ikke bundles i sin helhet, men kun der den refereres.Motivasjon og kontekst
Less er ikke alltid ønskelig å bruke ute i appene som konsumerer våre komponenter, f.eks støttes ikke Less av Next.js. Next.js brukes i sin tur i frontend av Sanity, som vi ønsker å innføre som CMS for designsystem-dokumentasjonen.