FavoritRupert Barrow (Fonds de Dotation Rapido.org) postete in LWC Patterns (Ursprünglich gefragt von Rupert Barrow)24. Jan. 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 ?Mehr anzeigenKommentar hinzufügenKommentar schreiben...FettKursivUnterstreichenDurchstreichenListe mit GliederungspunktenNummerierte ListeLink hinzufügenCodeblockBild einfügenDateien anhängenLink-URLAbbrechenSpeichern0/9000Antworten
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 ?Mehr anzeigen