Question
Use output_dir in App Plateform
Hello,
I have Nx workspace which build my Angular app inside dist/apps/{app_name}
. Even if I use output_dir
option inside my app spec yaml file (seen in the doc) to point to dist/apps/{app_name}
the files taken are, for exemple /apps/front/index.html
instead of /index.html
.
It seems that the default params (_static
, public
or dist
) override the output_dir
option or the default params (here dist
) has priority over output_dir
option.
Is there a solution to use dist/apps/{app_name}
as dir for my Angular app ?
Actually my work-around is to do yarn nx build front && mkdir -p public && mv dist/apps/front/* public && rm -rf dist
which is dirty.
Thanks,
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×