Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

webpack2 production build really slow "additional asset processing"

Tags:

webpack

I have a large webpack build that almost hangs at 91% on an "additional asset processing" step that does not give me a lot more information. Just this step consumes up to 4 minutes and seems to grow almost exponentially as we add modules to the build. Is there a way to better understand what is done during this step and eventually optimize it?

56205ms building modules
31ms sealing
0ms optimizing
0ms basic module optimization
15ms module optimization
0ms advanced module optimization
0ms basic chunk optimization
0ms chunk optimization
16ms advanced chunk optimization
14487ms building modules
0ms module and chunk tree optimization
31ms module reviving
0ms module order optimization
16ms module id optimization
0ms chunk reviving
16ms chunk order optimization
31ms chunk id optimization
140ms hashing
0ms module assets processing
265ms chunk assets processing
0ms additional chunk assets processing
0ms recording
206740ms additional asset processing
79781ms chunk asset optimization
1ms asset optimization
906ms emitting
like image 347
doberkofler Avatar asked Mar 18 '17 12:03

doberkofler


1 Answers

Not sure what your setup is but in my case it was Webpack and Extract Text plugin that was causing long asset load times. I changed to Webpack 2.7.0 and extract-text-webpack-plugin 2.1.2 and loading was back to normal.

like image 51
ceebreenk Avatar answered Oct 20 '22 11:10

ceebreenk