mirror of
https://github.com/nolanlawson/pinafore
synced 2024-12-12 02:07:26 +01:00
7c04b86405
* fix: use smooth scroll polyfill in Chrome for scroll-to-top * rename thunk to __thunk__ for safety
11 lines
373 B
JavaScript
11 lines
373 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
|
|
cache: !process.env.TERSER_DISABLE_CACHE,
|
|
parallel: true,
|
|
sourceMap: true,
|
|
terserOptions
|
|
})
|