UglifyJs error on production build

I was able to resolve this issue by commenting out
//exclude: [/node_modules(?![/|\\](bootstrap|foundation-sites))/],
in resources/assets/build/webpack.config.js as recommended in some GitHub discussions (https://github.com/JeffreyWay/laravel-mix/issues/790#issuecomment-371511832).