postcss / postcss-custom-properties

Use Custom Properties in CSS
https://postcss.github.io/postcss-custom-properties
MIT License
597 stars 77 forks source link

fs import prevents in-browser usage #143

Closed TheFirstAvenger closed 5 years ago

TheFirstAvenger commented 5 years ago

Creating a browser feature where you type postcss in one textarea and it displays css in the other. This works for other processors such as autoprefixer, nested, hexrgba, and discard-comments, but fails with postcss-custom-properties due to the fs import calls in import and export.

jonathantneal commented 5 years ago

If you are not using fs, can you redirect that import to something like an empty module?

jonathantneal commented 5 years ago

Since this is not a bug with the module, but an implementation question, I am closing this issue — though we may continue the conversation.