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

Inline full files and exclude them from loading twice #24

Open
wille opened this issue Sep 15, 2020 · 1 comment
Open

Inline full files and exclude them from loading twice #24

wille opened this issue Sep 15, 2020 · 1 comment

Comments

@wille
Copy link

wille commented Sep 15, 2020

Need ability to inline complete .css files and exclude those files from the extracted list of css files. so it's not loaded twice.

@theKashey
Copy link
Owner

Related: #14, #13

There is a way how to exclude certain files during the initialisation phase - discoverProjectStyles, just return false from filter

You might create two workers - one "without" files you want to inline completely, and another "without" normal files.

  • first one will exclude those files from the extracted list of css files
  • second provide ability to inline complete .css files

Keep in mind - used-styles might report which files has to be added(getUsedStyles), but not able to inline them by itself. Inlining work only for rules.

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

2 participants