Major Refactoring. Test update
This commit is contained in:
@@ -7,12 +7,12 @@ export default function grabArtifactsFromBundledResults({ result, pages, }) {
|
||||
.filter(([, meta]) => meta.entryPoint)
|
||||
.map(([outputPath, meta]) => {
|
||||
const target_page = pages.find((p) => {
|
||||
return meta.entryPoint === `virtual:${p.local_path}`;
|
||||
return meta.entryPoint === `virtual:${p.transformed_path}`;
|
||||
});
|
||||
if (!target_page || !meta.entryPoint) {
|
||||
return undefined;
|
||||
}
|
||||
const { file_name, local_path, url_path } = target_page;
|
||||
const { file_name, local_path, url_path, transformed_path } = target_page;
|
||||
const cssPath = meta.cssBundle || undefined;
|
||||
return {
|
||||
path: outputPath,
|
||||
@@ -25,6 +25,7 @@ export default function grabArtifactsFromBundledResults({ result, pages, }) {
|
||||
file_name,
|
||||
local_path,
|
||||
url_path,
|
||||
transformed_path,
|
||||
};
|
||||
});
|
||||
if (artifacts.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user