Friday, 7 June 2019

How to minify vendor.js on ng serve

I am currently about to embark on a redesign. This requires many scss changes and reloading the website. I would like to take advantage of the ng nerve command that uses live reload.

Does anyone know how I can run the ng serve and have the vendor.js file minified? When I use ng serve --prod it minifies the vendor.js... but it takes 10-15 seconds to build it.

Currently my vendor.js file is 8.9mb unminified and it's taking 2-3 seconds reach reload in development.

Anyone have ideas?

ng serve --prod while it does to minification, takes 2-3 minutes each time.

Note: Currently using Angular 6.X



from How to minify vendor.js on ng serve

No comments:

Post a Comment