axept / prejss

Get the power of PostCSS with plugins in your JSS styles. 🎨 Just put CSS into JS and get it as JSS object.
MIT License
248 stars 13 forks source link

Use postcss-load-config to load plugins #5

Closed DenisIzmaylov closed 7 years ago

DenisIzmaylov commented 7 years ago

We have to keep consistent behaviour of the both plugins in tandem with https://github.com/lttb/babel-plugin-prejss

It would be great to use https://github.com/michael-ciniawsky/postcss-load-config instead of hard-coded plugins list.

By using this config file we can load and configure all required PostCSS plugins for the project on both sides.

DenisIzmaylov commented 7 years ago

Did it: https://github.com/axept/jss-from-postcss/commit/3ad2af53306d9f6e08ce62fdf07e14e664f46b2e#diff-826cb2fa2d203e19886e359a6722c517