mirror of
https://github.com/fluencelabs/dweb-transports
synced 2025-03-15 18:30:49 +00:00
Attempt to uglify seems to work
This commit is contained in:
parent
2c3c0f4272
commit
618b5710dd
@ -17,6 +17,7 @@
|
|||||||
"ipfs-unixfs": "^0.1.15",
|
"ipfs-unixfs": "^0.1.15",
|
||||||
"node-fetch": "latest",
|
"node-fetch": "latest",
|
||||||
"readable-stream": "latest",
|
"readable-stream": "latest",
|
||||||
|
"webpack": "^4.16.0",
|
||||||
"webtorrent": "^0.99.3",
|
"webtorrent": "^0.99.3",
|
||||||
"y-array": "latest",
|
"y-array": "latest",
|
||||||
"y-indexeddb": "latest",
|
"y-indexeddb": "latest",
|
||||||
@ -30,7 +31,8 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"browserify": "^14.5.0",
|
"browserify": "^14.5.0",
|
||||||
"watchify": "^3.11.0",
|
"watchify": "^3.11.0",
|
||||||
"chai": "latest"
|
"chai": "latest",
|
||||||
|
"uglifyjs-webpack-plugin": "latest"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/internetarchive/dweb-transports#readme",
|
"homepage": "https://github.com/internetarchive/dweb-transports#readme",
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
|
||||||
module.exports = {
|
module.exports = {
|
||||||
entry: {
|
entry: {
|
||||||
'dweb-transports': './index.js',
|
'dweb-transports': './index.js',
|
||||||
@ -23,5 +24,14 @@ module.exports = {
|
|||||||
alias: {
|
alias: {
|
||||||
zlib: 'browserify-zlib-next'
|
zlib: 'browserify-zlib-next'
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
}
|
plugins: [
|
||||||
|
new UglifyJsPlugin({
|
||||||
|
uglifyOptions: {
|
||||||
|
compress: {
|
||||||
|
unused: false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
]
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user