google / material-design-icons

Material Design icons by Google (Material Symbols)
http://google.github.io/material-design-icons/
Apache License 2.0
49.89k stars 9.65k forks source link

Separate packages for web and SVG icons #14

Open sindresorhus opened 9 years ago

sindresorhus commented 9 years ago

The current npm package weigh in at 44 MB. This takes forever to install and takes a lot of diskspace.

Would be nice if there were multiple packages so you could choose a subset of what you want:

Might make sense to make material-design-icons just a combination of the above (read; exclude Android/iOS icons from the package) as I don't see why you would want to use npm when creating Android/iOS apps.

tomByrer commented 9 years ago

+1

I'm assuming compressing the images will lighten the download.

I don't see why you would want to use npm when creating Android/iOS apps.

Using Cordova/Phonegap & family for HTML5-based apps is a thing. It is what I & 1/3 of app devs plan to do.

Suggestions: It would be more clear to call PNGs -png & not -web. SVG browser support is ~90%. (Plus IMHO SVGs, single-file or complied into a sprite sheet, are superior for 'web' than PNGs & icon fonts. I think it wold be rare to need all resolutions of PNGs & SVGs, so would be better to further break down the file groups? eg:

sondreb commented 9 years ago

It's not just file size that is a problem, there are 72 380 files within the component folder. It would be very useful to be able to only get production SVG for instance.

brutto commented 9 years ago

+1

Roconda commented 9 years ago

+1

FezVrasta commented 9 years ago

+1 please

FezVrasta commented 9 years ago

I've forked this repo and edited bower.json to include only .svg

https://github.com/FezVrasta/material-design-icons-svg

till Google decides to fix this issue feel free to use this one.

addyosmani commented 9 years ago

@jestelle In the new year let's look at how we can break the repo up into smaller pieces that are easier to consume specific formats from. If we can do this in a way that works really well with your scripts too, that would be a win.

tomByrer commented 9 years ago

let's look at how we can break the repo up into smaller pieces

That's a good idea. Perhaps put all 'material design' into an GitHub Organization? Might make it easier for cross-discovery.

FezVrasta commented 8 years ago

any news?

chrisui commented 8 years ago

Just to keep this thread up-to-date...

A year and a half has passed now and it seems this problem is getting a bit out of hand - In our project the material-design-icons folder is now ~340mb ;) (30x bigger than our next biggest dependency)

Luckily it's pretty easy just to take the font/svgs and keep them up to date ourselves. There is also https://github.com/jossef/material-design-icons-iconfont for those looking.

It would be preferable to have this repo publish multiple packages to npm though as an "official mirror" rather than having to rely on a fork or manually copying files.

340.7 MiB [##########] /material-design-icons

eddiemonge commented 7 years ago

Any update on this?

carecki commented 6 years ago

Over a year has passed, but this is still an issue. Any news about this?