Skip to content

ng build --prod Does not iterate through apps [] within angular-cli.json #2506

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

Closed
fullstackdave opened this issue Oct 4, 2016 · 4 comments
Closed

Comments

@fullstackdave
Copy link

Please provide us with the following information:

OS?

Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)

Windows 10 Development

Versions.

Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here:

angular-cli: 1.0.0-beta.16
node: 6.7.0
os: win32 x64

Repro steps.

Was this an app that wasn't created using the CLI? What change did you do on your code? etc.

This app was created with the CLI then modified to be integrated into a pre-existing fullstack project. The structure of the CLI has been completely changed to fit our needs but works fine. When I run "ng build --prod" only the first application in the array gets built, if I want subsequent apps to be built I have to move them to the 0 index of the array of "apps": [] withn the anglular-cli.json.

The log given by the failure.

Normally this include a stack trace and some more information.

generates no errors

Mention any other details that might be useful.

While this isn't a deal breaker for us, more of a time sink; one would assume that the array of app objects would be iterated.

Test project found here:
https://github.com/fullstackdave/angular2-multi-app

spa/app/* = "src" directory
public/js/app/* = "dist" directory


Thanks! We'll be in touch soon.

@filipesilva
Copy link
Contributor

We don't actually yet support building multiple apps. We chose that structure for the config in order to give us freedom to have multiple apps, but there are still other considerations that we need to address before actually supporting it.

@suplch
Copy link

suplch commented Nov 21, 2016

I also create a issue #3213, I also hope to support build multi-bundle at the same time. Because of in some time, we only want to provide a little function to user without download whole large code.

@filipesilva
Copy link
Contributor

#5737 added documentation for how multiple apps can be built in the same project.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants