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

How does one use this? #3

Open
dvlden opened this issue Feb 22, 2022 · 1 comment
Open

How does one use this? #3

dvlden opened this issue Feb 22, 2022 · 1 comment

Comments

@dvlden
Copy link

dvlden commented Feb 22, 2022

I checked the code, cause there are no docs in README, or anywhere really.

Seems like I just call the plugin with the rest and seems like Next is default framework type.
However with or without config options set, I still get the error that width and height needs to be defined or layout=fill.

Seems like options are not working, no matter what I do.

@cliid
Copy link
Owner

cliid commented Jul 26, 2022

Sorry for the inconvenience. I was going to add a docs to the README, but since I had lots of schoolwork to do, I couldn't. Anyway, if you look at the test/index.test.ts file, you can see how to call the plugin.

{ twemoji: { size: 'svg' } }
{ framework: { type: 'next' } }

or

{ framework: { type: 'next', params: { w: 3840, q: 100 } } }

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