mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-03-30 15:08:28 +00:00
Update conf
This commit is contained in:
parent
6add4ce2b9
commit
8e4f22e0f3
@ -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: [
|
||||
|
Loading…
x
Reference in New Issue
Block a user