mirror of
https://github.com/bigchaindb/js-bigchaindb-driver.git
synced 2024-11-25 11:28:37 +01:00
31 lines
732 B
JavaScript
31 lines
732 B
JavaScript
|
/* eslint-disable strict, no-console, object-shorthand */
|
||
|
|
||
|
'use strict'
|
||
|
|
||
|
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
|
||
|
|
||
|
module.exports = {
|
||
|
devtool: 'inline-source-map',
|
||
|
optimization: {
|
||
|
minimizer: [
|
||
|
new UglifyJsPlugin({
|
||
|
test: /vendor/,
|
||
|
sourceMap: false,
|
||
|
}),
|
||
|
new UglifyJsPlugin({
|
||
|
test: /^((?!(vendor)).)*.js$/,
|
||
|
sourceMap: true,
|
||
|
})
|
||
|
],
|
||
|
splitChunks: {
|
||
|
cacheGroups: {
|
||
|
commons: {
|
||
|
test: /[\\/]node_modules[\\/]/,
|
||
|
name: 'vendors',
|
||
|
chunks: 'all'
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
},
|
||
|
}
|