jhipster / jhipster-vuejs

A Vue.js blueprint for JHipster. It will use Vue.js as the frontend library!
https://www.jhipster.tech
Apache License 2.0
301 stars 179 forks source link

optimize build time by custom terser config and little faster ts #621

Closed atomfrede closed 4 years ago

atomfrede commented 4 years ago

This pr improves the production build time. On my machine in the end it was ~8s faster (not much). What does it do?

I also tried a hello world app created with vue-cli and the production build (for basically one page) takes already 4.5s on my machine, so having for a full blown app like ours taking ~16 - 17s on my machine looks at least "ok"

Not doing sourcemaps with terser plugin cuts again 3-4s from the overall build time.

updates #620

pascalgrimaud commented 4 years ago

thanks @atomfrede :)