@hippy/hippy-react-devtools-plugin

0.1.3 • Public • Published

@hippy/hippy-react-devtools-plugin

support react devtools in Hippy

Usage

const HippyReactDevtoolsPlugin = require('@hippy/hippy-react-devtools-plugin');

module.exports = {
  // add this plugin to webpack config
  plugins: [
    // note this plugin must create before of '@hippy/hippy-react-refresh-webpack-plugin' if you use hmr
    new HippyReactDevtoolsPlugin({
      protocol: 'http',
      host: 'localhost',
      port: 38989,
    }),
  ],
  // or use @hippy/debug-server-next to auto enable this plugin
  devServer: {
    remote: {
      protocol: 'http',
      host: 'localhost',
      port: 38989,
    },
    reactDevtools: true,
  }
}

Development

# build for development in watch mode
yarn start
# build for production
yarn build

Dependents (2)

Package Sidebar

Install

npm i @hippy/hippy-react-devtools-plugin

Weekly Downloads

15

Version

0.1.3

License

ISC

Unpacked Size

1.03 MB

Total Files

12

Last publish

Collaborators

  • raypro
  • zealotchen
  • ivanfanwu
  • zoomchan-cxj
  • chestershen