在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:moxystudio/gatsby-plugin-ipfs开源软件地址:https://github.com/moxystudio/gatsby-plugin-ipfs开源编程语言:JavaScript 100.0%开源软件介绍:gatsby-plugin-ipfsAdds support for deploying Gatsby websites to IPFS by ensuring that assets are relative. Installation$ npm install --save gatsby-plugin-ipfs UsageSet module.exports = {
pathPrefix: '__GATSBY_IPFS_PATH_PREFIX__',
plugins: [
'gatsby-plugin-ipfs',
],
}; And now, simply build the project with "scripts": {
"build": "gatsby build --prefix-paths"
}, But how?It turns out the Gatsby doesn't support relative paths. But I didn't gave up and came up with smart and ugly hacks to do so:
License |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论