postcss / postcss-use

Enable PostCSS plugins directly in your stylesheet.
MIT License
153 stars 11 forks source link

Fix error message when resolving relative and module is not found #15

Closed rexxars closed 8 years ago

rexxars commented 8 years ago

Currently, if you use the relative require option and the plugin you are trying to use does not exist, you get a very cryptic missing path error (because the path can't be resolved, it returns null and require(null) gives this message.

This PR fixes this by explicitly throwing if no path to plugin is found.

ben-eb commented 8 years ago

Thanks! 👍

rexxars commented 8 years ago

You're welcome! Any chance you can push a new release at some point? :-)

ben-eb commented 8 years ago

Sure thing, I'm doing a little refactoring first.