PostCSS plugin for replacing IPFS strings.
Write this:
.foo {
background-image: url(ipfs://Qmhash/path/to/file.png);
}
.bar {
background-image: url(ipns://some.ipns.link/path/to/file.png);
}
And get this:
.foo {
background-image: url(https://ipfs.io/ipfs/Qmhash/path/to/file.png);
}
.bar {
background-image: url(https://ipfs.io/ipns/some.ipns.link/path/to/file.png);
}
$ npm install postcss-ipfs
postcss([ require('postcss-ipfs') ])
See PostCSS docs for examples regarding usage.
- Type:
string
- Default:
https://ipfs.io/
Gateway that will replace ipfs://
links.