Establecer como favoritoRupert Barrow (Fonds de Dotation Rapido.org) ha publicado en LWC Patterns (Pregunta original de Rupert Barrow)24 ene 2022, 17:50 #LWR Node questionRupert BarrowHow can I include SLDS styles resources in my LWR Node app ?With LWC OSS on Node, we could have lwc-services.config.js something like this :module.exports = { resources: [ { from: 'src/resources/', to: 'dist/resources/' }, { from: 'node_modules/@salesforce-ux/design-system/assets', to: 'dist/SLDS'} ]}; which copied SLDS assets to dist at build time.Then index.html included a link to the SLDS CSS : <link rel="stylesheet" type="text/css" href="SLDS/styles/salesforce-lightning-design-system.css" /> How should we do this in an LWR app ?Mostrar másAgregar un comentarioEscribir un comentario...NegritaCursivaSubrayadoTachadoLista con viñetasLista numeradaAgregar vínculoBloque de códigoInsertar imagenAdjuntar archivosURL de vínculoCancelarGuardar0/9000Responder
Rupert BarrowHow can I include SLDS styles resources in my LWR Node app ?With LWC OSS on Node, we could have lwc-services.config.js something like this :module.exports = { resources: [ { from: 'src/resources/', to: 'dist/resources/' }, { from: 'node_modules/@salesforce-ux/design-system/assets', to: 'dist/SLDS'} ]}; which copied SLDS assets to dist at build time.Then index.html included a link to the SLDS CSS : <link rel="stylesheet" type="text/css" href="SLDS/styles/salesforce-lightning-design-system.css" /> How should we do this in an LWR app ?Mostrar más