orbit-db/conf/webpack.debug.config.js

41 lines
671 B
JavaScript
Raw Normal View History

'use strict'
const path = require('path')
module.exports = {
entry: './src/OrbitDB.js',
output: {
libraryTarget: 'var',
library: 'OrbitDB',
2019-02-20 13:18:11 +00:00
filename: '../dist/orbitdb.js'
},
target: 'web',
2017-12-31 15:53:25 +01:00
devtool: 'source-map',
externals: {
fs: '{}',
mkdirp: '{}',
},
node: {
console: false,
Buffer: true
},
plugins: [
],
resolve: {
modules: [
'node_modules',
path.resolve(__dirname, '../node_modules')
],
alias: {
leveldown: 'level-js',
},
},
resolveLoader: {
modules: [
'node_modules',
path.resolve(__dirname, '../node_modules')
],
moduleExtensions: ['-loader']
},
}