mirror of
https://github.com/discourse/discourse.git
synced 2025-03-25 03:17:24 +08:00
DEV: Use correct vendor file when using ember-cli proxy in prod mode (#25224)
This commit is contained in:
parent
63a50b12fd
commit
a15399fcea
@ -38,6 +38,12 @@ function updateScriptReferences({
|
||||
if (!chunks) {
|
||||
if (distAssets.has(`${entrypointName}.js`)) {
|
||||
chunks = [`assets/${entrypointName}.js`];
|
||||
} else if (entrypointName === "vendor") {
|
||||
// support embroider-fingerprinted vendor when running with `-prod` flag
|
||||
const vendorFilename = [...distAssets].find((key) =>
|
||||
key.startsWith("vendor.")
|
||||
);
|
||||
chunks = [`assets/${vendorFilename}`];
|
||||
} else {
|
||||
// Not an ember-cli asset, do not rewrite
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user