Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@binance/taro-plugin-platform-binance

Package Overview
Dependencies
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@binance/taro-plugin-platform-binance

Taro platform plugin to support Nezha

  • 0.0.8
  • unpublished
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
3
Weekly downloads
 
Created
Source

@tarojs/plugin-platform-nezha

This is the plugin to make tarojs support nezha.

Build

yarn build

Usage

In the taro project, add @tarojs/plugin-platform-nezha into config/index.js

# at config/index.js
const config = {
  ...
  plugins: ["@tarojs/plugin-platform-nezha"],
  ...
}

Then use tarojs-cli run command to start dev process

cd [path-to-taro-project]
npm run build:nezha -- --watch

or build the project without watch

taro build --type nezha

Maybe some one need to specify the plugin to the path of plugin's project instead of to install it by npm. If so, he need to add webpack-chain config into config/index.js

# at config/index.js
const config = {
  ...
  plugins: [`${path-to-taro-platform-plugin}`]
  ...
  mini: {
    ...
    webpackChain(chain, webpack) {
      chain.merge({
        ...
        resolve: {
          alias: {
            "@tarojs/shared": [`${path-to-app-project}/node_modules/@tarojs/shared/dist`]
            "@tarojs/plugin-platform-nezha": [`${path-to-taro-platform-plugin}`]
          },
        },
        ...
      });
    },
    ...
  }
  ...
}

NOTICE @tarojs/shared must be setted to the same package when use path to import plugin, otherwise the compiled app will not register native apis!

FAQs

Package last updated on 28 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc