Angular production support
See original GitHub issueWhen importing your lib to an angular project (I tried it with 6.1.9 with a simple empty project created with ng new
) and running ng serve
it works fine.
When I run ng serve --prod
though, calling scrollIntoView
just does nothing. There are no errors on compilation or at runtime, but apparently minification/uglification destroys something essential.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Angular versioning and releases
We update peer dependencies in minor versions by expanding the supported versions, ... and reliability of the platform for production users that prefer...
Read more >Deploying an application - Angular
Deploying your application is the process of compiling, or building, your code and hosting the ... To support your UX/UI development, see Angular...
Read more >Deployment - Angular
For the simplest deployment, create a production build and copy the output directory to a web server. ... A routed application should support...
Read more >ng build - Angular
Option Description Value Type Default Value
‑‑aot Build using Ahead of Time compilation. boolean true
‑‑base‑href Base url for the application being built. string
‑‑delete‑output‑path Delete...
Read more >Service worker in production - Angular
The service worker responds to requests made by the Angular application for resources or data from a local cache, without needing to wait...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you for fixing this! I had the exact same issue and was wondering quite a long time why it’s not working in production until I decided to come to this github issues page and found this 😃
Thanks a lot!
Thank you. I am now able to set “buildOptimizer”: true for my prod builds 😉