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

[FEATURE] Subsetting based on textfiles #15

Open
the-hotmann opened this issue Apr 25, 2021 · 0 comments
Open

[FEATURE] Subsetting based on textfiles #15

the-hotmann opened this issue Apr 25, 2021 · 0 comments

Comments

@the-hotmann
Copy link

the-hotmann commented Apr 25, 2021

I want to subset all fonts on my page. But not with basic standard subsets but instead custom ones.

So it basically should remove ALL chars that are not needed on my pages.
I would like to pass something like this to the config:

options: {
	subsetFromText: ['public/*.html', 'public/**/*.html'],    // can be TXT, HTML, all type of Textfile and should just respect the Text in the HTML so most probably no "<" and ">" if not in the Text
	formats: ['woff2']
},

I just want to have the WOFF2 and I would like to remove ALL unused chars which are not getting used on my pages.

A similar function is available grunt-ziti but it is archived and not supported anymore.

Is such subset option against HTML possible?

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

No branches or pull requests

1 participant