nDmitry / grunt-postcss

Apply several post-processors to your CSS using PostCSS.
MIT License
419 stars 57 forks source link

es6-promise polyfill breaks karma #88

Closed danyshaanan closed 8 years ago

danyshaanan commented 8 years ago

Heya.

My execution of Karma (via grunt karma) fails due to the line:

require('es6-promise').polyfill();

This happens with:

The breakdown:

So - Is there a way to make require('es6-promise').polyfill(); optional? As in, via postcss's grunt config? (Also notice the polyfill's side effect is caused by loading the task, as opposed to running the task). If this solution is acceptable, I'll be happy to implement via a pull request.

If required, I can set up a little mock project that reproduces the issue.

Please advise.

nDmitry commented 8 years ago

Hi, I dropped node 0.10 support in the latest version (just published), so that polyfill is gone.

danyshaanan commented 8 years ago

Thanks! :100: