23 lines
526 B
JavaScript
23 lines
526 B
JavaScript
/* eslint-env node */
|
|
|
|
const TerserPlugin = require('terser-webpack-plugin');
|
|
|
|
module.exports = {
|
|
mode: 'production',
|
|
optimization: {
|
|
minimize: true,
|
|
minimizer: [
|
|
new TerserPlugin({
|
|
parallel: true,
|
|
extractComments: false,
|
|
terserOptions: {
|
|
output: {
|
|
// preserve license comments
|
|
comments: /@license/i
|
|
}
|
|
}
|
|
})
|
|
]
|
|
}
|
|
};
|