discourse/app/assets/javascripts
David Taylor 9db5eafb15
PERF: Improve production JS build in low-memory environments (#26849)
- Use 'cheap-source-map' webpack config on low-memory machines

  This results in worse quality sourcemaps in browser dev tools, but it significantly reduces memory use in our webpack build. In approximate local testing it drops from 1100mb to 590mb. This should make the rebuild process on low-memory machines much faster and less likely to trigger OOM errors.

  In development, and on higher-memory machines, the higher-quality 'source-map' option is maintained.

- Disable Webpack's built-in `minimize` feature. Embroider already applies Terser after the webpack build is complete. There is no need to double-minimize the output.

- Update ember-cli-progress-ci to print to stderr instead of stdout. For some reason, pups (used by discourse_docker) buffers the stdout of commands and only prints when they are finished. stderr does not have this same limitation, so switching will mean sysadmins can see the progress of the ember build in real-time.

Given the number of variables it's hard to promise exact numbers. But, in my tests on a DO droplet with 1GB RAM (+2GB swap), this reduced the `ember build` portion of a `./launcher rebuild app` from ~50 minutes to ~15 minutes.
2024-05-02 11:43:59 +01:00
..
admin DEV: Add more structure for admin plugin config nav (#26707) 2024-05-02 11:36:46 +10:00
custom-proxy DEV: Rename 'bootstrap-json' addon to 'custom-proxy' (#26561) 2024-04-08 19:53:02 +01:00
deprecation-silencer DEV: Update ember-cli to 5.6.0 (#25886) 2024-02-27 10:48:30 +01:00
dialog-holder Build(deps-dev): Bump webpack from 5.90.3 to 5.91.0 (#26273) 2024-03-21 07:03:20 +08:00
discourse PERF: Improve production JS build in low-memory environments (#26849) 2024-05-02 11:43:59 +01:00
discourse-common Build(deps): Bump the babel group with 2 updates (#26811) 2024-04-30 01:38:48 +02:00
discourse-hbr DEV: Convert discourse-hbr to a regular package (#26562) 2024-04-08 20:00:34 +01:00
discourse-i18n DEV: Update ember-cli to 5.6.0 (#25886) 2024-02-27 10:48:30 +01:00
discourse-markdown-it UX: add title attribute to composer preview image controls (#26301) 2024-03-22 09:49:10 -04:00
discourse-plugins Build(deps): Bump the babel group with 2 updates (#26811) 2024-04-30 01:38:48 +02:00
discourse-widget-hbs Build(deps): Bump the babel group with 2 updates (#26811) 2024-04-30 01:38:48 +02:00
docs
ember-addons
ember-cli-progress-ci PERF: Improve production JS build in low-memory environments (#26849) 2024-05-02 11:43:59 +01:00
ember-production-deprecations DEV: Drop unused shims for Ember 3 deprecations (#26563) 2024-04-09 09:22:37 +01:00
float-kit DEV: Add placement: center option to float-kit (#26830) 2024-05-01 12:12:00 +02:00
locales
pretty-text Build(deps): Bump the babel group with 2 updates (#26811) 2024-04-30 01:38:48 +02:00
select-kit Build(deps): Bump the babel group with 2 updates (#26811) 2024-04-30 01:38:48 +02:00
theme-transpiler Build(deps): Bump the babel group with 2 updates (#26811) 2024-04-30 01:38:48 +02:00
truth-helpers DEV: Convert truth-helpers to a v2 addon and simplify imports (#26029) 2024-03-05 15:24:47 +00:00
.npmrc
handlebars-shim.js
polyfills.js
run-patch-package
service-worker.js.erb DEV: Drop workbox dependency (#26735) 2024-04-24 10:19:12 +01:00