diff --git a/.gitignore b/.gitignore
index bf11b6c..839cf4e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,5 +7,6 @@ dump.rdb
Vagrantfile
orbit-db-cache.json
examples/browser/bundle.js
+examples/browser/*.map
dist/*.map
dist/orbitdb.js
diff --git a/examples/browser/index.js b/examples/browser/index.js
index 1d8a7aa..01e7b45 100644
--- a/examples/browser/index.js
+++ b/examples/browser/index.js
@@ -16,7 +16,7 @@ try {
const log = orbit.eventlog(channel + ".log")
const counter = orbit.counter(channel + ".count")
- const creatures = ['👻', '🤖', '🐬', '🐞', '🐈']
+ const creatures = ['👻', '🐙', '🐷', '🐬', '🐞', '🐈', '🙉', '🐸', '🐓']
let count = 1
const query = () => {
@@ -38,18 +38,20 @@ try {
const count = counter.value()
const output =
-`
+`Key-Value Store
---------------------------------------------------
-Key | Value
+Key | Value
---------------------------------------------------
${key} | ${result}
---------------------------------------------------
+Eventlog
---------------------------------------------------
Latest Visitors
---------------------------------------------------
-${latest.reverse().map((e) => e.payload.value).join('\n')}
+${latest.reverse().map((e) => e.payload.value + " - " + new Date(e.payload.meta.ts).toISOString()).join('\n')}
+Counter
---------------------------------------------------
Visitor Count: ${count}
---------------------------------------------------
diff --git a/webpack.example.config.js b/webpack.example.config.js
index f3b16ba..c533fc4 100644
--- a/webpack.example.config.js
+++ b/webpack.example.config.js
@@ -8,16 +8,17 @@ module.exports = {
output: {
filename: './examples/browser/bundle.js'
},
+ devtool: 'sourcemap',
node: {
console: false,
process: 'mock',
Buffer: true
},
plugins: [
- // new webpack.optimize.UglifyJsPlugin({
- // mangle: false,
- // compress: { warnings: false }
- // })
+ new webpack.optimize.UglifyJsPlugin({
+ mangle: false,
+ compress: { warnings: false }
+ })
],
resolve: {
modules: [
@@ -40,7 +41,7 @@ module.exports = {
},
{
test: /\.js$/,
- include: /node_modules\/(hoek|qs|wreck|boom|log|orbit.+|logplease|crdts|promisify-es|whatwg-fetch|node-fetch|isomorphic-fetch|db\.js)/,
+ include: /node_modules\/(hoek|qs|wreck|boom|ipfs.+|orbit.+|logplease|crdts|promisify-es|whatwg-fetch|node-fetch|isomorphic-fetch|db\.js)/,
loader: 'babel',
query: {
presets: require.resolve('babel-preset-es2015'),