Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit a698f34

Browse files
dfguodryajov
authored andcommitted
docs: fix js dependencies in webpack example (#1027)
* docs: fix js dependencies in webpack example * Update app.js * Update package.json * Update package.json * Update package.json * Update app.js
1 parent c8ac543 commit a698f34

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

examples/browser-webpack/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
"webpack-dev-server": "^2.4.5"
2121
},
2222
"dependencies": {
23-
"safe-buffer": "^5.0.1"
23+
"ipfs": "file:../../"
2424
}
2525
}

examples/browser-webpack/src/components/app.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
'use strict'
22

33
const React = require('react')
4-
const Buffer = require('safe-buffer').Buffer
5-
const IPFS = require('../../../../src/core') // replace this by line below
6-
// const IPFS = require('ipfs')
4+
const IPFS = require('ipfs')
75

86
const stringToUse = 'hello world from webpacked IPFS'
97

0 commit comments

Comments
 (0)