Instantly share code, notes, and snippets.

Embed
What would you like to do?
const postcss = require("postcss");
module.exports = postcss.plugin("wrap-with-supports", () => css => {
const supports = postcss.parse("@supports(top:0){}");
css.each(n => {
supports.first.append(n);
});
css.append(supports);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment