Skip to content
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

Angular materal is HUGE (aot size) #4163

Closed
maciejtreder opened this issue Apr 19, 2017 · 2 comments
Closed

Angular materal is HUGE (aot size) #4163

maciejtreder opened this issue Apr 19, 2017 · 2 comments

Comments

@maciejtreder
Copy link

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Application which uses angular material should be definetely smaller after AOT compilation.

What is the current behavior?

Wann make your application over 50% higher? Use angular material.

krk-mp5bp:angular2-webpack-starter-master msobala$ du -hd0 dist/
916K	dist/   <<<size without material
krk-mp5bp:angular2-webpack-starter-master msobala$ du -hd0 dist/
1.4M	dist/  <<< size with material

What are the steps to reproduce?

I have used this repo: https://github.com/AngularClass/angular2-webpack-starter as boiler plate and made one simple addition in app.module.ts:

import { MaterialModule } from '@angular/material';

/*
some other code
*/

@NgModule({
  bootstrap: [ AppComponent ],
  declarations: [
//some declarations
  ],
  imports: [ // import Angular's modules
//some modules
MaterialModule.forRoot()
  ],
  providers: [ // expose our Services and Providers into Angular's dependency injection
    ENV_PROVIDERS,
    APP_PROVIDERS
  ]
})

What is the use-case or motivation for changing an existing behavior?

1,5MB is in my opinion definetely too much for production app.

Which versions of Angular, Material, OS, browsers are affected?

material2-beta.3
angular 4.0.2

@jelbourn
Copy link
Member

Dupe of #4137

@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
None yet
Projects
None yet
Development

No branches or pull requests

2 participants