In this example, you will find a boilerplate you can use to guide yourself into bundling js-ipfs with webpack, so that you can use it in your own web app!
First clone this repo, install dependencies in the project root and build the project.
$ git clone https://github.com/ipfs/js-ipfs.git
$ cd js-ipfs
$ npm install
$ npm run build
Once the daemon is on, run the following command within this folder:
$ npm start
Now open your browser at http://localhost:3000
You should see the following: