Skip to content

Instantly share code, notes, and snippets.

@albarivas
Last active February 2, 2022 09:55
Show Gist options
  • Save albarivas/039f4e317cb6c3afbf3385e3a80fd891 to your computer and use it in GitHub Desktop.
Save albarivas/039f4e317cb6c3afbf3385e3a80fd891 to your computer and use it in GitHub Desktop.
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`);
});
{
"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
}
}
]
}
<html>
<head>
<link rel="stylesheet" href="$assetsDir/styles/salesforce-lightning-design-system.css" />
</head>
</html>
{
"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