Webpack build very slow - ionic serve


#1

Yesterday I removed my node_modules files and installed it back.
From then, building webpack using ionic serve is very slow (94.55 s).

I really don’t know what caused this issue.
Is there any way to debug that?

I tried using ionic-app-script 3.0.0 and also ionic-app-script nightly, but the result remains the same.


#2

Is that with —prod or just ionic serve?


#3

What is your ionic info output?


#4

With just ionic serve


#5

cli packages: (/Users/antoine/amical/node_modules)

@ionic/cli-utils  : 1.13.0
ionic (Ionic CLI) : 3.13.0

global packages:

cordova (Cordova CLI) : 7.0.1 

local packages:

@ionic/app-scripts : 3.0.0-201710101530
Cordova Platforms  : android 6.2.3 ios 4.5.1
Ionic Framework    : ionic-angular 3.7.1-201710101557

System:

ios-deploy : 1.9.2 
Node       : v6.11.4
npm        : 5.4.2 
OS         : macOS High Sierra
Xcode      : Xcode 9.0 Build version 9A235 

Misc:

backend : pro

#6

Webpack 3.7.0 and above is the problem here.
Reverting to webpack 3.6.0 solves the issue.