makseo / ng2-sticky

Angular 2+ solution to make elements stick during scrolling.
https://domainlines.com
MIT License
92 stars 50 forks source link

Prod Build with StickyComponent fails from UglifyJS #34

Open gauzpan opened 7 years ago

gauzpan commented 7 years ago

I am stuck on this Error for a while now when I am running prod build for my Angular app. Please I would be grateful if anyone knows how to fix it.

ERROR in main.b3f048353a4c6f5ed01c.bundle.js from UglifyJs
Unexpected token: name (StickyComponent) [main.b3f048353a4c6f5ed01c.bundle.js:9203,6]
irsali commented 6 years ago

Quite late to answer this, but in case someone else face same issue.

Using build-Optimizer and/or vendor-chunk solve issue. https://github.com/angular/angular-cli/wiki/build