즐겨찾기Rupert Barrow (Fonds de Dotation Rapido.org) 님이 LWC Patterns에 글을 올렸습니다 (최초 질문자: Rupert Barrow)2022년 1월 24일 오후 5: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 ?더 보기댓글 추가댓글을 작성하세요...굵은 글꼴기울인 글꼴밑줄취소선불릿 기호 목록번호가 지정된 목록링크 추가코드 블록이미지 삽입파일 첨부링크 URL취소저장0/9000답글 쓰기
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 ?더 보기