Welcome! Please see the About page for a little more info on how this works.

+1 vote
in ClojureScript by

I'm trying to port a re-frame app to use the new :bundle target based on the webpack tutorial. Prior to this I used the approach from the old webpack tutorial.

I'm finding webpack takes inpractically long (10 minutes) to perform chunk asset optimisation.

% webpack --progress resources/public/js/index.js -o resources/public/js/app.js 92% chunk asset optimization TerserPlugin ...

If I configure the TerserPlugin and set compress: false it improves to a few seconds.

I suspect the slowness is caused by webpack chewing on the ~2mb advanced build output from my app.

Are there recommended webpack settings to avoid pointless "compress the compressed file" slowness?

PS. I've created a gist with a few of my tests/results.

Please log in or register to answer this question.

...