{"action":"created","issue":{"url":"https://api.github.com/repos/ionic-team/ionic-app-scripts/issues/1280","repository_url":"https://api.github.com/repos/ionic-team/ionic-app-scripts","labels_url":"https://api.github.com/repos/ionic-team/ionic-app-scripts/issues/1280/labels{/name}","comments_url":"https://api.github.com/repos/ionic-team/ionic-app-scripts/issues/1280/comments","events_url":"https://api.github.com/repos/ionic-team/ionic-app-scripts/issues/1280/events","html_url":"https://github.com/ionic-team/ionic-app-scripts/issues/1280","id":265578509,"number":1280,"title":"Webpack 3.7.0 and above slow build","user":{"login":"tanzl88","id":4703671,"avatar_url":"https://avatars1.githubusercontent.com/u/4703671?v=4","gravatar_id":"","url":"https://api.github.com/users/tanzl88","html_url":"https://github.com/tanzl88","followers_url":"https://api.github.com/users/tanzl88/followers","following_url":"https://api.github.com/users/tanzl88/following{/other_user}","gists_url":"https://api.github.com/users/tanzl88/gists{/gist_id}","starred_url":"https://api.github.com/users/tanzl88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanzl88/subscriptions","organizations_url":"https://api.github.com/users/tanzl88/orgs","repos_url":"https://api.github.com/users/tanzl88/repos","events_url":"https://api.github.com/users/tanzl88/events{/privacy}","received_events_url":"https://api.github.com/users/tanzl88/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":24,"created_at":"2017-10-15T15:03:25Z","updated_at":"2018-03-22T14:16:02Z","closed_at":null,"author_association":"NONE","body":"#### Short description of the problem:\r\nWhen webpack is updated to 3.7.0 and above, webpack build step takes much longer time and more memory.\r\n\r\n#### What behavior are you expecting?\r\nWebpack build step should be almost identical after update.\r\n\r\nDebug mode ionic serve log. Identical project codes and npm packages except webpack.\r\n### Webpack 3.7.1\r\nWebpack step is 1 minute slower and use ~200MB more memory compared to webpack 3.6.0\r\n```\r\n[22:52:22]  watch started ... MEM: 158.6MB \r\n[22:52:22]  build dev started ... MEM: 158.7MB \r\n[22:52:22]  clean started ... MEM: 158.5MB \r\n[22:52:22]  clean finished in 25 ms MEM: 159.1MB \r\n[22:52:22]  copy started ... MEM: 159.1MB \r\n[22:52:23]  deeplinks started ... MEM: 174.3MB \r\n[22:52:23]  deeplinks finished in 608 ms MEM: 209.4MB \r\n[22:52:23]  transpile started ... MEM: 209.4MB \r\n[22:52:29]  transpile finished in 5.86 s MEM: 438.2MB \r\n[22:52:29]  preprocess started ... MEM: 438.2MB\r\n[22:52:29]  copy finished in 6.81 s MEM: 439.9MB \r\n[22:52:29]  preprocess finished in 125 ms MEM: 443.7MB \r\n[22:52:29]  webpack started ... MEM: 443.7MB \r\n[22:53:48]  webpack finished in 79.33 s MEM: 1206.0MB \r\n[22:53:48]  sass started ... MEM: 1206.0MB \r\n[22:53:51]  sass finished in 2.11 s MEM: 1205.2MB \r\n[22:53:51]  postprocess started ... MEM: 1205.2MB \r\n[22:53:51]  postprocess finished in 46 ms MEM: 1209.8MB \r\n[22:53:51]  lint started ... MEM: 1209.8MB \r\n[22:53:51]  build dev finished in 88.51 s MEM: 1209.9MB ```\r\n```\r\n\r\n### Webpack 3.6.0\r\n```\r\n[22:47:08]  watch started ... MEM: 159.4MB \r\n[22:47:08]  build dev started ... MEM: 159.5MB  \r\n[22:47:08]  clean started ... MEM: 160.4MB \r\n[22:47:08]  clean finished in 35 ms MEM: 160.9MB \r\n[22:47:08]  copy started ... MEM: 160.9MB \r\n[22:47:09]  deeplinks started ... MEM: 175.4MB \r\n[22:47:09]  deeplinks finished in 578 ms MEM: 188.9MB \r\n[22:47:09]  transpile started ... MEM: 188.9MB \r\n[22:47:15]  transpile finished in 5.50 s MEM: 429.2MB \r\n[22:47:15]  preprocess started ... MEM: 429.2MB \r\n[22:47:15]  copy finished in 6.42 s MEM: 429.4MB \r\n[22:47:15]  preprocess finished in 126 ms MEM: 434.3MB \r\n[22:47:15]  webpack started ... MEM: 434.3MB \r\n[22:47:30]  webpack finished in 15.24 s MEM: 1042.8MB \r\n[22:47:30]  sass started ... MEM: 1042.8MB \r\n[22:47:32]  sass finished in 1.97 s MEM: 1041.7MB \r\n[22:47:32]  postprocess started ... MEM: 1041.7MB \r\n[22:47:32]  postprocess finished in 47 ms MEM: 1045.7MB \r\n[22:47:32]  lint started ... MEM: 1045.7MB \r\n[22:47:32]  build dev finished in 23.90 s MEM: 1045.7MB \r\n```\r\n\r\n**Which @ionic/app-scripts version are you using?**\r\n3.0.0"},"comment":{"url":"https://api.github.com/repos/ionic-team/ionic-app-scripts/issues/comments/375321580","html_url":"https://github.com/ionic-team/ionic-app-scripts/issues/1280#issuecomment-375321580","issue_url":"https://api.github.com/repos/ionic-team/ionic-app-scripts/issues/1280","id":375321580,"user":{"login":"mlynch","id":11214,"avatar_url":"https://avatars3.githubusercontent.com/u/11214?v=4","gravatar_id":"","url":"https://api.github.com/users/mlynch","html_url":"https://github.com/mlynch","followers_url":"https://api.github.com/users/mlynch/followers","following_url":"https://api.github.com/users/mlynch/following{/other_user}","gists_url":"https://api.github.com/users/mlynch/gists{/gist_id}","starred_url":"https://api.github.com/users/mlynch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlynch/subscriptions","organizations_url":"https://api.github.com/users/mlynch/orgs","repos_url":"https://api.github.com/users/mlynch/repos","events_url":"https://api.github.com/users/mlynch/events{/privacy}","received_events_url":"https://api.github.com/users/mlynch/received_events","type":"User","site_admin":false},"created_at":"2018-03-22T14:16:02Z","updated_at":"2018-03-22T14:16:02Z","author_association":"OWNER","body":"Hey all. We're aware of this, but we don't have a solution right now. If 2.1.4 works for you, awesome. With Ionic 4's angular support, we don't need app scripts anymore, we will use the ng cli toolchain. I'm not saying that will solve these problems because some are inherent to the Angular build process, but it should help.\r\n\r\nStay tuned for that, we're getting close to the alpha release this Spring."}}
{"actor":{"display_login":"mlynch"}}