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

42 lines
720 B
JavaScript
Raw Normal View History

'use strict'
const path = require('path')
const Uglify = require('uglifyjs-webpack-plugin')
module.exports = {
entry: './src/OrbitDB.js',
output: {
libraryTarget: 'var',
library: 'OrbitDB',
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']
},
}