-
Notifications
You must be signed in to change notification settings - Fork 41
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
Material icons #212
Material icons #212
Conversation
… the current Vuetify configuration.
…or embedded.html.
Just for transparency: If the necessary icon set is added only the build size of the CSS increases in a minimal way from |
My apologies for not testing this thoroughly. I'm looking for a short term fix for this. Otherwise I suggest you hold this PR back until we worked on #94 |
Ok, after spending some time looking through your build files, the problem appears to be, that you turned off the 'url' option in the css-loader for the production build. From utils.js:
I'm not entirely sure if I could be breaking something there by turning it always on. Do you remember where this code was coming from or what the intention was? |
@chrismayer The issue with the production build should be fixed now. The initial assessment of the package sizes was wrong. On top of that we get the actual fonts which are deployed inside the static/fonts directory. However keep in mind that the client will usually load only one set of the web fonts, for my browsers (Firefox + Chrome) these are the woff2 fonts. So the situation is not as bad as it looks at first glance. Also it seems that currently only MaterialIcons-Regular is loaded (about 280kb) which would be loaded from Google CDN anyway - others are not yet in use but could be in the future. ` static/fonts/MaterialIcons-Regular.225ce29.eot 114 kB [emitted] ` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for this and also for the transparent documentation / explanation about the build size impact.
This branch adds material design icons (@mdi/font) and material icon (material-icons) NPM packages. While the first isn't strictly required, it gives us a bunch of new icon options. The difference in package sizes seem to be moderate - biggest change is in source maps.
Head
static/css/app.f0d6ecc014b266ef49f5ecf30858ce65.css 455 kB 1 [emitted] [big] app
static/css/app.f0d6ecc014b266ef49f5ecf30858ce65.css.map 592 kB 1 [emitted] app
90140d3: Added @mdi/font
static/css/app.edf256455dfa66015e7356a48407b18d.css 723 kB 1 [emitted] [big] app
static/css/app.edf256455dfa66015e7356a48407b18d.css.map 1.11 MB 1 [emitted] app
43daa29: Added material-icons
static/css/app.f246aeeafd13987c68f24912f85c6deb.css 725 kB 1 [emitted] [big] app
static/css/app.f246aeeafd13987c68f24912f85c6deb.css.map 1.12 MB 1 [emitted] app