Skip to content

production build including all js and multiple file , but in production build , it should have minimum file and minified files. and also ng build -prod not working .. it very big issue with production .. this should be first priority #926

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
kamleshkumarverma1986 opened this issue May 26, 2016 · 9 comments
Labels
needs: more info Reporter must clarify the issue needs: repro steps We cannot reproduce the issue with the information given

Comments

@kamleshkumarverma1986
Copy link

Please provide us with the following information:

  1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
  1. Versions. Please run ng --version. If there's nothing outputted, please
    run in a Terminal:
    node --version
    And paste the result here.

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

  3. The log given by the failure. Normally this include a stack trace and some
    more information.

  4. Mention any other details that might be useful.


    Thanks! We'll be in touch soon.

@filipeaguiar
Copy link

You should consider changing the title to something shorter.

My sugestion:

ng build -prod not working or generating unnecessary files

@filipesilva filipesilva added needs: more info Reporter must clarify the issue needs: repro steps We cannot reproduce the issue with the information given labels Jun 1, 2016
@filipesilva
Copy link
Contributor

@kamleshKumarVerma I'm not really sure what you mean. Currently prod mode will bundle and minify files, as of beta.5. Is that not what you are experiencing?

If it is not working for you, can you provide me with reproduction steps so I can try and debug the issue?

@thunderrun
Copy link

in package.json
change dependency systemjs from
"systemjs": "0.19.26"
to
"systemjs": "0.19.29"
and then npm install

Angular cli should release a new version and change the dependencies in package.json to the latest or just tell users to do this in README.md or more issues like this will pop up.

@filipesilva
Copy link
Contributor

@thunderrun what is that change meant to fix?

@hellsan631
Copy link

hellsan631 commented Jun 2, 2016

having the same issue, and tried the fix as posted by @thunderrun, but unfortunately it didn't work.

Any time I add -prod to either ng build or ng serve, nothing loads in the app. There are no errors in console either. Here is a look at the network screen: https://gyazo.com/91eb02e1c84a9580fc8e1d0af8fc12e3

I am, however, getting some issues with loading the source js.map files on my server side. I doubt its the source maps though.

Without the prod flag, everything works fine, but then we have to load around ~290 scripts total, instead of just a few.

@thunderrun
Copy link

thunderrun commented Jun 3, 2016

@filipesilva
systemjs in angular-cli beta.5 packages.json is still 0.19.26
which cause production builds fail when i add 3rd part libs #839
so i changed systemjs to the latest version and it seems just works for me...

@filipesilva
Copy link
Contributor

@thunderrun systemjs-builder has a dependency on a later version of systemjs so I don't think it changes much. I'll investigate though, maybe something got fixed there.

@hellsan631 see #951 for that problem.

@filipesilva
Copy link
Contributor

Closing as I can't get an answer back from the original poster. @kamleshKumarVerma if you're still having trouble reply here so I can reopen the issue.

@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 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: more info Reporter must clarify the issue needs: repro steps We cannot reproduce the issue with the information given
Projects
None yet
Development

No branches or pull requests

5 participants