Page MenuHomePhabricator

[landing][web] Migrate from assets-webpack-plugin to webpack-manifest-plugin
ClosedPublic

Authored by ashoat on Mar 14 2023, 4:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 2, 2:23 AM
Unknown Object (File)
Tue, Dec 31, 9:18 AM
Unknown Object (File)
Sun, Dec 29, 7:47 PM
Unknown Object (File)
Sun, Dec 29, 7:47 PM
Unknown Object (File)
Sun, Dec 29, 7:40 PM
Unknown Object (File)
Sat, Dec 21, 12:10 PM
Unknown Object (File)
Dec 8 2024, 3:39 AM
Unknown Object (File)
Dec 6 2024, 9:47 PM
Subscribers

Details

Summary

This addresses ENG-3328. assets-webpack-plugin has this problem and webpack-manifest-plugin is officially recommended by Webpack.

Old JSON file looked like this:

{"browser":{"css":"prod.41af96d9c587.build.css","js":"prod.8860cda0687b.build.js"},"":{"wasm":"olm.983876380b11.wasm"}}

New JSON file looks like this:

{
  "browser.css": "prod.41af96d9c587.build.css",
  "browser.js": "prod.3bf3c62a7a70.build.js",
  "olm.wasm": "olm.983876380b11.wasm"
}
Test Plan

I ran keyserver / web / landing in prod mode and confirmed that JS, CSS, and olm.wasm all successfully loaded

Diff Detail

Repository
rCOMM Comm
Branch
ashoat/manifest
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

landing/webpack.config.cjs
50

This replaces removeFullPathAutoPrefix. Without this, all of the filenames are prefixed with auto/ for some reason. From scouring GitHub, it seems to have something to do with this, but I didn't really investigate it too far.

This revision is now accepted and ready to land.Mar 16 2023, 2:59 AM