@plexinc/react-lightning-plugin-devtools
v0.1.6
Published
React-Lightning DevTools for Chromium-based browsers
Keywords
Readme
Building
pnpm installpnpm build
This will create the files needed for the extension in the dist folder.
pnpm dev will watch for changes and re-build.
Usage
Integrating into your react-lightning app
Import the plugin:
import devtoolsPlugin from '@plexinc/react-lightning-plugin-devtools/plugin'
Include the options in the react-lightning render options:
const options: RenderOptions = {
// ... other options
plugins: [devtoolsPlugin(), /* other plugins */],
};Adding devtools to Chrome
- Go to our Chrome extensions settings
- Enable
Developer mode - Select
Load unpacked - Navigate to the
distfolder created from the build - Open devtools and you should see a
React Lightningpanel
Note: During development, any changes to the entrypoint files or manifest may require restarting devtools or sometimes even a reload of the extension if you don't see your changes.
