New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No way to access compilation output files #27386
Comments
This behavior is expected. Unlike with the webpack builder, the application builder uses multiple instances of esbuild to compile various parts of your application. To obtain the complete list of files, utilize the for await (const { outputFiles } of buildApplication(...)) {
} |
@alan-agius4
When using |
|
How can i execute it without write mode? As i see this is only possible using My use case:
So to achieve this during compilation time I emmit additional file (we can call it entry.json) that is deployed together with all files generated by angular. External application fetches only Ideally would be to do this only by using |
@alan-agius4 any update on this? |
@alan-agius4 can you please reopen this issue? Problem still exists and there is no final info how to get list of compiled files properly. |
…s when using the application builder This allows access to file when using the `buildApplication` API Closes: angular#27386
…s when using the application builder This allows access to file when using the `buildApplication` API Closes: angular#27386
…s when using the application builder This allows access to file when using the `buildApplication` API Closes: angular#27386
…s when using the application builder This allows access to file when using the `buildApplication` API Closes: angular#27386
…s when using the application builder This allows access to file when using the `buildApplication` API Closes: angular#27386
Command
build, serve
Description
I have an esbuild plugin that is resposible to collect outputFiles after compilation (using
onEnd
hook withresult.outputFiles
).When using application builder (esbuild) with custom plugins there is no way to access full list of outputFiles, only those emitted by
main
entrypoint compilation. There is no way to access additional files emited by angular builder, such aspolyfills
, assets, styles etc.Previously, with using webpack plugin, i was able to get full list of outputFiles by using
processAssets
compilation hook.I need to list emited files, as this is only way to get full names with filenames hash.
MY point is to build something like manifest of compilation result output files.
Describe the solution you'd like
I would like to be able to access all compilation files by esbuild plugin.
Describe alternatives you've considered
An alternative could be to access output files as an result of builder output, currently
build
command only returns{success: true}
without information about output files.The text was updated successfully, but these errors were encountered: