I have this @angular/elements project for which after each build I have to concat all generated file into a single bundle. Something like this
$> ng build els --prod --output-hashing=none
$> cat ./dist/elements/runtime-es5.js ./dist/elements/polyfills-es5.js ./dist/elements/main-es5.js > ./dist/fbp-elements.js"
However, I would like to add --watch
to that build task during development. But then I cannot run the concat task after each new build (because the build keeps running and is never ready)
This sounds like something for Angular CLI builders, which allows you to hook into the build process (thats what I've red). However, it is unclear to me how this is done. Are there any examples like this. It seems pretty new and without much documentation and examples yet out there. Any help would be appreciated!