You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this convert function goes right into depending on path.basename which means it is nodejs only. your doc says in the first example, it takes a css string as one variant of param 1. that's what i am passing (a css string) but it is trying to load a file. 😢
The text was updated successfully, but these errors were encountered:
Hi @btmurrell, thanks for reaching out. Yes it looks like you are accurate, the convert function allows both direct string conversion and file input, and the way it differentiates between the two uses path.basename to derive whether the input is a filename string or a CSS string You can see this here: https://github.com/americanexpress/css-to-js/blob/main/src/index.js#L32
As we don't currently expose the API directly, having a dependency on path is currently a requirement.
Could you provide a bit more context on your environment and usecase so we can discuss your requirements during our next planning session.
this
convert
function goes right into depending onpath.basename
which means it is nodejs only. your doc says in the first example, it takes a css string as one variant of param 1. that's what i am passing (a css string) but it is trying to load a file. 😢The text was updated successfully, but these errors were encountered: