mirror of
https://github.com/nolanlawson/pinafore
synced 2024-12-13 02:37:20 +01:00
ca9a32d303
* feat: add OCR for image descriptions using tesseract.js * tweak style of alt editor * remove unnecessary files
20 lines
369 B
JavaScript
20 lines
369 B
JavaScript
const TerserWebpackPlugin = require('terser-webpack-plugin')
|
|
|
|
module.exports = () => new TerserWebpackPlugin({
|
|
exclude: /tesseract-asset/,
|
|
cache: true,
|
|
parallel: true,
|
|
sourceMap: true,
|
|
terserOptions: {
|
|
ecma: 8,
|
|
mangle: true,
|
|
compress: {
|
|
pure_funcs: ['console.log']
|
|
},
|
|
output: {
|
|
comments: false
|
|
},
|
|
safari10: true
|
|
}
|
|
})
|