rleecrewmp's avatar

Running production build process yields errors with UglifyJS

I've been trying to solve this for quite some time going back and forth between different Git Issues and forum posts trying all solutions to no avail.

I'm currently using Zurb Foundation along with Laravel 5.5 but whenever I try to run npm run production I get:

ERROR in /js/vendor.js from UglifyJs Unexpected character '`' [./node_modules/foundation-sites/js/foundation.util.core.js:24,0][/js/vendor.js:24846,124]

I understand Foundation 6.4 requires es2015 presets but I've read that Elixir does that out of the box. I've tried setting it in a .babelrc file as es2015 and env. I've tried every single suggestion I could dig up with Google but nothing has worked. Any suggestions? Or maybe something I might have done to bring this error upon myself? Is minifying my code just not possible?

Thanks

0 likes
0 replies

Please or to participate in this conversation.