I am currently trying to extract minification and fingerprint details during the build process to be used in other platforms. For example I want to include the minified files, including the fingerprint in adjacent properties. I want to be able to export these details to a json file or some other file to be used when building other applications in a monorepo.
Is there a suggested way to do this? Do I need to make a custom pipe that can take the “$css” variable and extract them out?
Ideally I’d create a json file with a list of original files and their minify/fingerprint details. There are files like resources/_gen/assets/css/main2.css_....json but they include the minified url and fingerprint, but this is hard to extract programmatically as the filename includes hashed details in it.
In my resources/_gen I have files like main2.css_53d8db2e382030cdec351f02c8b70385.json but I have currently 5 different of these types of files (meaning the different hashes after the css filename).
If I were to use a file like this, how do I know which one is the current one? It seems new ones are created but I am not sure when they are made, and if I need “older” ones of these files to continue to exist.
If you try to remove the “html” extension from the exported filename, you’ll get what look like placeholders instead of data. Maybe a bug; not sure.
Tried a few options for the export, along the lines of the .html thing you were saying. Going to make a bug report about it to figure out why that’s the case. I can work around the .html thing for now.