wg-build-test-release icon indicating copy to clipboard operation
wg-build-test-release copied to clipboard

Generating static assets is too slow because of obsolete Webpack version

Open BbrSofiane opened this issue 4 years ago • 3 comments

We did a brief study on the Webpack config where BTR-5 reported that uglify plugin is supposed to be used twice and the size of the output is same with or without the plugin.

On further investigation it was found the UglifyJsPlugin is just called on prod build and this plugin is not solely responsible for slowing down the build.

The proposal was also to update devtool:eval which can be a faster devtool equivalent. We also arrive at the understanding that the webpack config used and the version of webpack that is being used is very obsolete. So we should invest time in upgrading webpack and work on the webpack config to support the newer version.

https://openedx.atlassian.net/browse/BTR-5?focusedCommentId=507315

https://openedx.atlassian.net/browse/BTR-60

BbrSofiane avatar Feb 08 '21 15:02 BbrSofiane

@BbrSofiane ready to take a ticket

cmltaWt0 avatar Mar 01 '21 12:03 cmltaWt0

@regisb Following our meetings yesterday, the detailed explanation about optimizing the install process which I mentioned can be found here openedx/frontend-wg/issues/25.

Also given now we have two issues (this and the one refereed above) with overlapping goals, I wonder would it be better to move the discussion there may be?

ghassanmas avatar Oct 26 '21 10:10 ghassanmas

Hi @ghassanmas!! , following the PR's related with this issue seems that almost all the tasks to get a better performance were done.Do we need something else to continue and close this issue?

NeOneSoft avatar Mar 25 '22 00:03 NeOneSoft

Closing as stale.

arbrandes avatar Dec 06 '22 14:12 arbrandes