-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Trying to figure out if it's possible to bundle the lightning-base-components with an application (specifically seeing if I can get it to work with a react app).
I tried something like this in my webpack config:
new LWCWebpackPlugin({
namespace: {
// LWC Namespace with path
lightning: path.resolve(root, 'node_modules/lightning-base-components/src/lightning')
},
// NPM modules
modules: [
'@salesforce-ux/design-system',
]
}),Was hoping this would let me reference the components via something like this:
<lightning-button
label="Neutral"
title="Non-primary action"
onclick={() => console.log('abc')}
class="slds-m-left_x-small"
></lightning-button>Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels