This repository was archived by the owner on May 1, 2020. It is now read-only.
This repository was archived by the owner on May 1, 2020. It is now read-only.
Webpack 3.7.0 and above slow build #1280
Open
Description
Short description of the problem:
When webpack is updated to 3.7.0 and above, webpack build step takes much longer time and more memory.
What behavior are you expecting?
Webpack build step should be almost identical after update.
Debug mode ionic serve log. Identical project codes and npm packages except webpack.
Webpack 3.7.1
Webpack step is 1 minute slower and use ~200MB more memory compared to webpack 3.6.0
[22:52:22] watch started ... MEM: 158.6MB
[22:52:22] build dev started ... MEM: 158.7MB
[22:52:22] clean started ... MEM: 158.5MB
[22:52:22] clean finished in 25 ms MEM: 159.1MB
[22:52:22] copy started ... MEM: 159.1MB
[22:52:23] deeplinks started ... MEM: 174.3MB
[22:52:23] deeplinks finished in 608 ms MEM: 209.4MB
[22:52:23] transpile started ... MEM: 209.4MB
[22:52:29] transpile finished in 5.86 s MEM: 438.2MB
[22:52:29] preprocess started ... MEM: 438.2MB
[22:52:29] copy finished in 6.81 s MEM: 439.9MB
[22:52:29] preprocess finished in 125 ms MEM: 443.7MB
[22:52:29] webpack started ... MEM: 443.7MB
[22:53:48] webpack finished in 79.33 s MEM: 1206.0MB
[22:53:48] sass started ... MEM: 1206.0MB
[22:53:51] sass finished in 2.11 s MEM: 1205.2MB
[22:53:51] postprocess started ... MEM: 1205.2MB
[22:53:51] postprocess finished in 46 ms MEM: 1209.8MB
[22:53:51] lint started ... MEM: 1209.8MB
[22:53:51] build dev finished in 88.51 s MEM: 1209.9MB ```
Webpack 3.6.0
[22:47:08] watch started ... MEM: 159.4MB
[22:47:08] build dev started ... MEM: 159.5MB
[22:47:08] clean started ... MEM: 160.4MB
[22:47:08] clean finished in 35 ms MEM: 160.9MB
[22:47:08] copy started ... MEM: 160.9MB
[22:47:09] deeplinks started ... MEM: 175.4MB
[22:47:09] deeplinks finished in 578 ms MEM: 188.9MB
[22:47:09] transpile started ... MEM: 188.9MB
[22:47:15] transpile finished in 5.50 s MEM: 429.2MB
[22:47:15] preprocess started ... MEM: 429.2MB
[22:47:15] copy finished in 6.42 s MEM: 429.4MB
[22:47:15] preprocess finished in 126 ms MEM: 434.3MB
[22:47:15] webpack started ... MEM: 434.3MB
[22:47:30] webpack finished in 15.24 s MEM: 1042.8MB
[22:47:30] sass started ... MEM: 1042.8MB
[22:47:32] sass finished in 1.97 s MEM: 1041.7MB
[22:47:32] postprocess started ... MEM: 1041.7MB
[22:47:32] postprocess finished in 47 ms MEM: 1045.7MB
[22:47:32] lint started ... MEM: 1045.7MB
[22:47:32] build dev finished in 23.90 s MEM: 1045.7MB
Which @ionic/app-scripts version are you using?
3.0.0
Metadata
Metadata
Assignees
Labels
No labels