jhipster-vuejs icon indicating copy to clipboard operation
jhipster-vuejs copied to clipboard

Webpack build: need improvements

Open pascalgrimaud opened this issue 5 years ago • 5 comments
trafficstars

Following @atomfrede's comment and discussion at https://github.com/jhipster/jhipster-vuejs/issues/618#issuecomment-631338202

See https://webpack.js.org/guides/build-performance/#specific-tooling-issues

The build time has been increased a lot. See my screenshots - using jhipster-control-center:

Before: Capture d’écran de 2020-05-21 10-17-58

After: Capture d’écran de 2020-05-21 10-18-02

pascalgrimaud avatar May 21 '20 08:05 pascalgrimaud

Woah that's huge. Is that a production build? Can you measure if the bundle size has decreased maybe (for longer build times)?

atomfrede avatar May 21 '20 08:05 atomfrede

@atomfrede : yes, I used mvn clean verify -Pprod -DskipTests Ok, I'll try to compare the bundle size and provide more information here

About JHipster Control Center (JHCC):

  • old version of jhipster-vuejs: https://github.com/jhipster/jhipster-control-center/tree/backup-before-upgrade-6.9.0
  • new version: https://github.com/jhipster/jhipster-control-center/tree/master

So we have a real project and we can compare

pascalgrimaud avatar May 21 '20 08:05 pascalgrimaud

Here some screenshots to compare bundle size. Left = new version, right = old version

Capture d’écran de 2020-05-21 10-45-26

Capture d’écran de 2020-05-21 10-46-06

Capture d’écran de 2020-05-21 10-48-21

pascalgrimaud avatar May 21 '20 08:05 pascalgrimaud

@atomfrede your PR https://github.com/jhipster/jhipster-vuejs/pull/621 fixes the bug ?

qmonmert avatar Aug 28 '20 08:08 qmonmert

No it just makes it faster. I am not even sure we can get much faster as the default vue cli already takes very long for basically no real application code.

atomfrede avatar Aug 29 '20 11:08 atomfrede