2021-07-05 04:19:04 +01:00
|
|
|
import TerserWebpackPlugin from 'terser-webpack-plugin'
|
|
|
|
import terserOptions from '../bin/terserOptions'
|
2018-12-16 01:36:36 +00:00
|
|
|
|
2021-07-05 04:19:04 +01:00
|
|
|
export default () => new TerserWebpackPlugin({
|
2019-10-15 04:00:57 +01:00
|
|
|
exclude: /(tesseract-asset|page-lifecycle)/, // tesseract causes problems, page-lifecycle is pre-minified
|
2018-12-16 01:36:36 +00:00
|
|
|
parallel: true,
|
2019-10-25 03:03:10 +01:00
|
|
|
terserOptions
|
2018-12-16 01:36:36 +00:00
|
|
|
})
|