• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

zippiehq/ipfs-webpack-plugin

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

zippiehq/ipfs-webpack-plugin

开源软件地址:

https://github.com/zippiehq/ipfs-webpack-plugin

开源编程语言:

JavaScript 100.0%

开源软件介绍:

IPFS Webpack Plugin

This plugin simplifies the operation of creating js bundles to be served through IPFS by automatically adding the bundles as part of the webpack build process and injects the applications <script> tags to include the bundle CIDs

Features

  • Automatically adds bundles to local IPFS node
  • Injects <script> tags with IPFS Cids
  • CIDHOOK pinning of bundled content
  • Supports brotli compressed bundles
  • create-react-app support through craco

Plugin Configuration

Variables through dotenv

  • IPFS_WEBPACK_PLUGIN_NO_GETTER = false disables the dapp ipfs get bundle function
  • IPFS_WEBPACK_SWARM_CONNECT = multiaddr multiaddress to connect to using swarm.connect
  • IPFS_WEBPACK_UPLOAD = true automatically upload to IPFS
  • IPFS_WEBPACK_ONLINE = true bring internal ipfs node online
  • IPFS_WEBPACK_CIDHOOK_PINNER = url url for CIDHOOKd
  • IPFS_WEBPACK_CIDHOOK_SECRET = secret shared secret for CIDHOOKd
  • IPFS_WEBPACK_CIDHOOK_WAIT = 10000 Timeout in ms for Pin operation
  • IPFS_WEBPACK_ZIPPIE_PERMASTORE2_PRIVKEY = private_key Private key for zippie Permastore2 operations
  • IPFS_BLOCK_PINNER_ADDRESS = http://localhost:8099 url for block pinning service

Dapp Configuration

Connecting to IPFS

Dapps will automatically connect through an available window.ipfs instance through IPFS Companion or you can instantiate your own js-ipfs instance through that variable.

The Dapp will also check for running in an iframe for use with ipfs-postmsg-proxy to allow sharing of an js-ipfs node between dapps




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PlagueCat-Miao/goipfs-lab511: ipfs发布时间:2022-06-23
下一篇:
mcrider/dcap-node: Convenient REST API for managing optionally encrypted decentr ...发布时间:2022-06-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap