Postcss: Run synchronously

Created on 9 Oct 2015  ·  3Comments  ·  Source: postcss/postcss

Hi!
Can I run postcss synchronously?
Something like:

var result = postcss(plugins).processSync(css);

Most helpful comment

Processor#process returns LazyResult object with then method to async and css/map methods to sync access.

All 3 comments

postcss(plugins).process(css).css

Processor#process returns LazyResult object with then method to async and css/map methods to sync access.

Wow! :zap: Thanks

Was this page helpful?
0 / 5 - 0 ratings