2018-12-16 02:36:36 +01:00
|
|
|
const TerserWebpackPlugin = require('terser-webpack-plugin')
|
2019-10-25 04:03:10 +02:00
|
|
|
const terserOptions = require('../bin/terserOptions')
|
2018-12-16 02:36:36 +01:00
|
|
|
|
2019-10-08 16:57:37 +02:00
|
|
|
module.exports = () => new TerserWebpackPlugin({
|
2019-10-15 05:00:57 +02:00
|
|
|
exclude: /(tesseract-asset|page-lifecycle)/, // tesseract causes problems, page-lifecycle is pre-minified
|
2018-12-16 02:36:36 +01:00
|
|
|
parallel: true,
|
2019-10-25 04:03:10 +02:00
|
|
|
terserOptions
|
2018-12-16 02:36:36 +01:00
|
|
|
})
|