Last active
February 2, 2022 09:55
-
-
Save albarivas/039f4e317cb6c3afbf3385e3a80fd891 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cpx from 'cpx'; | |
import { log } from 'console'; | |
// Copy the SLDS resources to the assets dir | |
cpx.copy('../../node_modules/@salesforce-ux/design-system/assets/**/*', 'src/assets', () => { | |
log(`Done copying SLDS resources`); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"lwc": { "modules": [{ "dir": "$rootDir/src/modules" }, { "npm": "lightning-base-components" }] }, | |
"bundleConfig": { "exclude": ["lwc", "@lwc/synthetic-shadow"] }, | |
"assets": [ | |
{ | |
"alias": "assetsDir", | |
"dir": "$rootDir/src/assets", | |
"urlPath": "/assets" | |
}, | |
{ | |
"dir": "$rootDir/src/assets/fonts", | |
"urlPath": "/fonts" | |
}, | |
{ | |
"file": "$rootDir/src/assets/utilitySprite.svg", | |
"urlPath": "/lightning.utilitySprite" | |
} | |
], | |
"routes": [ | |
{ | |
"id": "slds-base", | |
"path": "/", | |
"rootComponent": "example/app", | |
"layoutTemplate": "$layoutsDir/main.html", | |
"bootstrap": { | |
"syntheticShadow": true | |
} | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<link rel="stylesheet" href="$assetsDir/styles/salesforce-lightning-design-system.css" /> | |
</head> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"devDependencies": { | |
"@salesforce-ux/design-system": "^2.11.6", | |
"lightning-base-components": "^1.9.0-alpha" | |
}, | |
"dependencies": { | |
"lwr": "^0.5.5" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment