Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

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

Open
billy-reilly opened this issue Jan 26, 2019 · 0 comments
Open

Comments

@billy-reilly
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant