7

Running ng build --prod command after update angularcli to version 8 does not generate index.html inside dist folder.

3
  • 3
    It's unclear what you're trying to ask here. Can you be more specific? Commented Jul 30, 2019 at 9:07
  • I had update my angularcli from v7 to v8 then i had create a new project, after build that project using --prod flag there is not index.html file generated inside dist folder. Commented Jul 30, 2019 at 9:17
  • @AadityaSharma Now it is clear to you? Commented Jul 31, 2019 at 6:32

1 Answer 1

10

The problem is solved, In angular 8 while I get an error of maximum budget exceeds it builds the dist folder but without index file, while I increase my budget like below:

  "budgets": [
                {
                  "type": "initial",
                  "maximumWarning": "2mb",
                  "maximumError": "10mb"
                }

It works.

Sign up to request clarification or add additional context in comments.

2 Comments

the index.html is generated. But why still can't deploy my website?
It worked, generating index.html file. But why "irebase deploy" didnt work for me?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.