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

Add browser support #1

Closed
ai opened this issue Sep 27, 2021 · 1 comment
Closed

Add browser support #1

ai opened this issue Sep 27, 2021 · 1 comment

Comments

@ai
Copy link
Contributor

ai commented Sep 27, 2021

PostCSS is often packaged to JS bundle. We need index.browser.js version. It is OK just to return string there (but you will need to convert undefined and numbers to strings to be compatible with types).

Here a way to use them in package.json: https://github.com/ai/nanocolors/blob/main/package.json#L20-L23 https://github.com/ai/nanocolors/blob/main/package.json#L28

This was referenced Sep 27, 2021
@alexeyraspopov
Copy link
Owner

picocolors@0.1.0 is now published and supports browser field
https://github.com/alexeyraspopov/picocolors/releases/tag/v0.1.0

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