mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
29 lines
673 B
JavaScript
29 lines
673 B
JavaScript
|
'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'
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
},
|
||
|
}
|