arpack
v1.0.0
Published
A webpack plugin for automatically uploading assets to Arweave
Maintainers
Readme
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 arpackUsage
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;
