FavoriteRupert Barrow (Fonds de Dotation Rapido.org) posted in LWC Patterns (Originally asked by Rupert Barrow)Jan 24, 2022, 5:50 PM #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 ?Show MoreAdd a commentWrite a comment...BoldItalicUnderlineStrikethroughBulleted ListNumbered ListAdd linkCode blockInsert imageAttach filesLink URLCancelSave0/9000Reply
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 ?Show More