1.0.0 • Published 4 years ago
arpack v1.0.0
Arpack: A Webpack plugin for uploading static assets to the permaweb
Arpack is a small webpack plugin to upload static assets to the Arweave permaweb. The user only needs to specify a path to an AR wallet and to the assets folder in the webpack config file.
Installation
It's as easy as:
sudo npm install arpack
Usage
You'll need an Arweave wallet for authenticating.
Use the following configuration in your webpack.config.js
file:
const Arpack = require('arpack');
const path = require("path");
var config = {
plugins: [
new Arpack({
walletPath: "./wallet.json", // path to your AR wallet
uploadPath: "./static", // path to your assets folder
appName: "Arpack-test" // App name to be used for tagging assets
})
]
}
module.exports = config;
It can take up to 10 minutes before the data is available on the Blockchain.
Make sure your wallet file is included in your .gitignore file.
I created Arpack as a part of a Hackathon.
1.0.0
4 years ago