Pinafore-Web-Client-Frontend/webpack/terser.config.js

9 lines
310 B
JavaScript

const TerserWebpackPlugin = require('terser-webpack-plugin')
const terserOptions = require('../bin/terserOptions')
module.exports = () => new TerserWebpackPlugin({
exclude: /(tesseract-asset|page-lifecycle)/, // tesseract causes problems, page-lifecycle is pre-minified
parallel: true,
terserOptions
})