FormidableLabs / spectacle-boilerplate

[DEPRECATED] Boilerplate project for getting started with Spectacle Core
579 stars 192 forks source link

build script error from Uglify - `Unexpected token: keyword (const)` #73

Open billy-reilly opened 5 years ago

billy-reilly commented 5 years ago

running npm run build was throwing the following error:

ERROR in bundle.js from UglifyJs
Unexpected token: keyword (const) [bundle.js:6,144411]

I fixed it as described in this stackoverflow answer by replacing uglify with the terser webpack plugin

I'd be happy to put in a PR so others don't run into this issue if you'd like?