Skip to content
Permalink
Browse files

Update conf

  • Loading branch information...
shamb0t committed Feb 20, 2019
1 parent 6add4ce commit 8e4f22e0f3494f6ad78ad89715c628c086c29cad
Showing with 5 additions and 17 deletions.
  1. +2 −4 conf/webpack.config.js
  2. +1 −2 conf/webpack.debug.config.js
  3. +2 −11 conf/webpack.example.config.js
@@ -2,14 +2,13 @@

const path = require('path')
const webpack = require('webpack')
const Uglify = require('uglifyjs-webpack-plugin')

module.exports = {
entry: './src/OrbitDB.js',
output: {
libraryTarget: 'var',
library: 'OrbitDB',
filename: './dist/orbitdb.min.js'
filename: '../dist/orbitdb.min.js'
},
target: 'web',
devtool: 'none',
@@ -26,8 +25,7 @@ module.exports = {
'process.env': {
'NODE_ENV': JSON.stringify(process.env.NODE_ENV)
}
}),
new Uglify(),
})
],
resolve: {
modules: [
@@ -1,14 +1,13 @@
'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'
filename: '../dist/orbitdb.js'
},
target: 'web',
devtool: 'source-map',
@@ -2,19 +2,11 @@

const path = require('path')
const webpack = require('webpack')
const Uglify = require('uglifyjs-webpack-plugin')

const uglifyOptions = {
uglifyOptions: {
mangle: false,
compress: false,
},
}

module.exports = {
entry: './examples/browser/browser-webpack-example/index.js',
output: {
filename: './examples/browser/browser-webpack-example/bundle.js'
filename: '../examples/browser/browser-webpack-example/bundle.js'
},
target: 'web',
devtool: 'none',
@@ -26,8 +18,7 @@ module.exports = {
'process.env': {
'NODE_ENV': JSON.stringify(process.env.NODE_ENV)
}
}),
new Uglify(uglifyOptions),
})
],
resolve: {
modules: [

0 comments on commit 8e4f22e

Please sign in to comment.
You can’t perform that action at this time.