1
0
mirror of https://github.com/nolanlawson/pinafore synced 2025-01-19 08:19:54 +01:00
Pinafore-Web-Client-Frontend/webpack/terser.config.js
2018-12-15 17:36:36 -08:00

19 lines
339 B
JavaScript

const TerserWebpackPlugin = require('terser-webpack-plugin')
module.exports = () => new TerserWebpackPlugin({
cache: true,
parallel: true,
sourceMap: true,
terserOptions: {
ecma: 6,
mangle: true,
compress: {
pure_funcs: ['console.log']
},
output: {
comments: false
},
safari10: true
}
})