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

[Question] Strip unused providers from library? #377

Open
OwenMelbz opened this issue Sep 16, 2017 · 0 comments
Open

[Question] Strip unused providers from library? #377

OwenMelbz opened this issue Sep 16, 2017 · 0 comments

Comments

@OwenMelbz
Copy link

We're pulling in webfontlaoder via npm and currently using it as below

const WebFont = require('webfontloader');

WebFont.load({
    google: {
        families: ['Droid Sans', 'Droid Serif']
    }
});

However I've noticed the compiled JS using webpack contains all the providers like typekit, fontdeck etc. We will only ever need the google provider.

Is there anyway to pull in only google and not bloat with extra providers?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant