@plexinc/react-lightning-plugin-devtools

0.1.6 • Public • Published

Building

  • pnpm install
  • pnpm 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 dist folder created from the build
  • Open devtools and you should see a React Lightning panel

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @plexinc/react-lightning-plugin-devtools

Weekly Downloads

10

Version

0.1.6

License

MIT

Unpacked Size

1.28 MB

Total Files

88

Last publish

Collaborators

  • avaly
  • teddy_baehr
  • marafat
  • cookandy
  • marshallasch
  • slumpy