mirror of
https://github.com/bigchaindb/js-bigchaindb-driver.git
synced 2024-11-25 11:28:37 +01:00
35 lines
743 B
JavaScript
35 lines
743 B
JavaScript
// Copyright BigchainDB GmbH and BigchainDB contributors
|
|
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
|
|
// Code is Apache-2.0 and docs are CC-BY-4.0
|
|
|
|
/* eslint-disable strict, no-console, object-shorthand */
|
|
|
|
'use strict'
|
|
|
|
const TerserPlugin = require('terser-webpack-plugin')
|
|
|
|
module.exports = {
|
|
devtool: 'inline-source-map',
|
|
optimization: {
|
|
minimizer: [
|
|
new TerserPlugin({
|
|
test: /vendor/,
|
|
sourceMap: false
|
|
}),
|
|
new TerserPlugin({
|
|
test: /^((?!(vendor)).)*.js$/,
|
|
sourceMap: false
|
|
})
|
|
],
|
|
splitChunks: {
|
|
cacheGroups: {
|
|
commons: {
|
|
test: /[\\/]node_modules[\\/]/,
|
|
name: 'vendors',
|
|
chunks: 'all'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|